浏览代码

图片 禁止拖拽和旋转

黄琪勇 10 月之前
父节点
当前提交
3069c56044
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/assets/normalize.css

+ 12 - 0
src/assets/normalize.css

@@ -39,6 +39,18 @@ p {
    margin: 0;
 }
 
+img {
+   user-select: none;
+   -webkit-user-select: none;
+   -moz-user-select: none;
+   -ms-user-select: none;
+   -webkit-touch-callout: none;
+   -webkit-user-drag: none;
+   -moz-user-drag: none;
+   -ms-user-drag: none;
+   user-drag: none;
+}
+
 /**
  * 1. Correct the line height in all browsers.
  * 2. Prevent adjustments of font size after orientation changes in