소스 검색

图片 禁止拖拽和旋转

黄琪勇 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;
    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.
  * 1. Correct the line height in all browsers.
  * 2. Prevent adjustments of font size after orientation changes in
  * 2. Prevent adjustments of font size after orientation changes in