Selaa lähdekoodia

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

TIANYONG 1 vuosi sitten
vanhempi
commit
97643f8912
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  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 {