好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

css3实现的文本无法选中效果_html/css_WEB-ITnose

css3实现的文本无法选中效果:
在实际应用中可能有这样的需求,那就是设置指定元素中的文本不可以选中。
css3中指定属性可以实现此功能,下面就通过代码实例介绍一下如何实现此功能。
代码如下:

      蚂蚁部落   div{   -moz-user-select:none;   -khtml-user-select:none;   -webkit-user-select:none;  -o-user-select:none;  -ms-user-select:none;  user-select:none;  background:#CCC;  font-size:12px;  text-align:center;  width:300px;  height:150px;}       

蚂蚁部落欢迎您

查看更多关于css3实现的文本无法选中效果_html/css_WEB-ITnose的详细内容...

  阅读:38次