Browse Source

设置导航文字无法选中

fanghuisheng 4 năm trước cách đây
mục cha
commit
2c53700576
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/views/index.vue

+ 3 - 0
src/views/index.vue

@@ -169,6 +169,9 @@ export default {
 
 <style scoped lang="less">
 #header {
+  -moz-user-select: none;//设置文本不可选中
+  -webkit-user-select: none;//设置文本不可选中
+  user-select: none;//设置文本不可选中
   .router-index {
     position: absolute;
     display: flex;