Browse Source

fix: #10853,iOS设备所有页面去掉长按选中

TIANYONG 1 năm trước cách đây
mục cha
commit
97643f8912
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/style.css

+ 5 - 1
src/style.css

@@ -7,7 +7,11 @@ img {
   -webkit-touch-callout: none;
 }
 body {
-  user-select: none;
+  -webkit-user-select: none; /* Safari */
+  -moz-user-select: none; /* Firefox */
+  -ms-user-select: none; /* Internet Explorer/Edge */
+  user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera,禁用文本选择 */
+  -webkit-touch-callout: none; /* iOS Safari,禁用长按行为 */
 }
 
 :root {