css样式上的俩种方案
1.不能被选择 user-select:none;
-webkit-user-select:none;
-ms-user-select:none;
-moz-user-select:none;
2.禁用系统默认菜单
touch-callout:none;
-webkit-touch-callout:none;
-ms-touch-callout:none;
-moz-touch-callout:none;
本文介绍两种CSS方案:一是使用user-select属性禁止文本被选中;二是通过touch-callout属性禁用移动端默认上下文菜单。
css样式上的俩种方案
1.不能被选择 user-select:none;
-webkit-user-select:none;
-ms-user-select:none;
-moz-user-select:none;
2.禁用系统默认菜单
touch-callout:none;
-webkit-touch-callout:none;
-ms-touch-callout:none;
-moz-touch-callout:none;
935
1977

被折叠的 条评论
为什么被折叠?