问题遇到的现象和发生背景
css设置了img标签的pointer-events: none;属性和user-select:none以及-webkit-touch-callout:none;属性,禁止用户长按图片保存图片,但是在QQ浏览器还是有些图片能够长按保存呢?其他浏览器可以实现长按不出现保存图片菜单
问题相关代码,请勿粘贴截图
img {
pointer-events: none;
-webkit-touch-callout:none;
-khtml-user-select:none;
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select: none;
user-select:none;
}
运行结果及报错内容
就这个中间的图片可以长按保存,其他的不行,不知道哪里出了问题