Browse Source

禁止图片拖动

黄琪勇 11 tháng trước cách đây
mục cha
commit
fe91486169
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/style.css

+ 5 - 1
src/style.css

@@ -4,7 +4,11 @@
   box-sizing: border-box;
 }
 img {
-  -webkit-touch-callout: none;
+    -webkit-touch-callout: none;
+    -webkit-user-drag: none;
+    -moz-user-drag: none;
+    -ms-user-drag: none;
+    user-drag: none;
 }
 body {
   -webkit-user-select: none; /* Safari */