前端的小玩意(3)禁止元素被选中
2016-06-21 09:55
302 查看
(28)禁止元素被选中
在css的样式表里,添加这样属性(可兼容所有浏览器)
{
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
关于IE10的:
http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
在css的样式表里,添加这样属性(可兼容所有浏览器)
{
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
关于IE10的:
http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
相关文章推荐
- jquery获取对象
- 编写可复用的无缝滚动轮播图
- Nodejs的测试和测试驱动开发
- caffe基础(5):Blob,Layer和Net以及对应配置文件的编写
- Node.js模块定义总结
- jQuery动态添加可拖动元素完整实例(附demo源码下载)
- Bootstrap3 datetimepicker控件的使用
- AngularJS 2.0五分钟快速入门
- 带有定位当前位置的百度地图前端web api实例代码
- ArcGIS JS 学习笔记4 实现地图联动
- ArcGIS JS 学习笔记3 实现百度风格的BubblePopup
- ArcGIS JS 学习笔记2 实现仿百度的拖拽画圆
- ArcGIS JS 学习笔记1 用ArcGIS JS 实现仿百度地图的距离量测和面积量测
- jQuery中的ready函数与window.onload谁先执行
- js清除浏览器缓存的几种方法
- swiper的基础使用(五)
- JavaScript调用OC代码调试问题、页面 4000 复杂跳转逻辑警告处理
- 最快让你上手ReactiveCocoa之基础篇
- webstorm 2016(2016.11.25更新)11 12 (注册,激活,破解,码,一起支持正版,最新可用)
- 纯JS前端实现分页代码