//直接在HTML Style里面加入以下代码即可,适应绝大多数浏览器,安卓WebView反正是肯定没问题,如果需要其他的浏览器加在*号里面
<style type="text/css">
*{
-webkit-touch-callout:none;
-webkit-user-select:none;
-khtml-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
input,textarea {
-webkit-user-select:auto;
margin: 0px;
padding: 0px;
outline: none;
}
</style>
android WebView html网页设置长按的时候不出现复制粘贴
最新推荐文章于 2024-06-25 11:57:41 发布