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

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

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;
}	
posted @ 2022-07-20 18:16  猫老板的豆  阅读(389)  评论(0编辑  收藏  举报