一、问题描述
如图:
css
uni-image>img,
img {
pointer-events: none;
-webkit-pointer-events: none;
-ms-pointer-events: none;
-moz-pointer-events: none;
}
uni-image::before {
content: ' ';
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: transparent;
opacity: 0;
}
这样对img覆盖了一层蒙版,也就不会出现长按菜单了
只针对图片长按禁用