首页 > 开发 > CSS > 正文

通过CSS禁用页面内容选中和复制操作

2024-07-11 08:35:49
字体:
来源:转载
供稿:网友

要想通过CSS禁用页面内容选中和复制操作,只需在body的样式中,增加如下代码:


-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
user-select: none;

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表