您的位置:首页 > 其它

禁止页面长按复制

2016-07-19 13:48 155 查看
<style type="text/css">

*{
-webkit-touch-callout:none;  /*系统默认菜单被禁用*/
-webkit-user-select:none; /*webkit浏览器*/
-khtml-user-select:none; /*早期浏览器*/
-moz-user-select:none;/*火狐*/
-ms-user-select:none; /*IE10*/
user-select:none;
}
</style>


在添加完这段代码后,在I`这里写代码片`OS 上会有问题的,这个时候你会发现input 框无法正在输入了内容了;造成这个原因就是 -webkit-user-select:none; 这个属性造成的。继续加入下面代码


input {
-webkit-user-select:auto; /*webkit浏览器*/
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: