Parcourir la source

图片 禁止拖拽和旋转

黄琪勇 il y a 10 mois
Parent
commit
3069c56044
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  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