旁观自己 善待朝夕|

猫老板的豆

园龄:9年4个月粉丝:52关注:0

禁止微信浏览器长按出菜单(亲测可用)

禁止微信浏览器长按出菜单

iso安卓 亲测可用

img{
	//元素不能成为鼠标事件的target
	pointer-events:none;
	-webkit-pointer-events:none;
	-ms-pointer-events:none;
	-moz-pointer-events:none;
}

下面是网上常见的两种css方法,但都不行

img{
	//不能被选择
	user-select:none;
	-webkit-user-select:none;
	-ms-user-select:none;
	-moz-user-select:none;
	
	//禁用系统默认菜单
	touch-callout:none;
	-webkit-touch-callout:none;
	-ms-touch-callout:none;
	-moz-touch-callout:none;
}	

本文作者:猫老板的豆

本文链接:https://www.cnblogs.com/bingcola/p/16499247.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   猫老板的豆  阅读(432)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.