好得很程序员自学网

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

css禁止选中指定文本代码实例_html/css_WEB-ITnose

css禁止选中指定文本代码实例:
在实际编码中可能有这样的需求,那就禁止指定的元素可以被选中,下面就通过代码实例介绍一下如何实现此效果。代码如下:

      蚂蚁部落  div{  -webkit-user-select:none;   -moz-user-select:none;  -ms-user-select:none;  -o-user-select:none;  user-select:none;  width:150px;  height:100px;  background:#ccc;  margin:0px auto;   font-size:12px;}   

蚂蚁部落欢迎您,只有努力奋斗才会有美好的未来。

查看更多关于css禁止选中指定文本代码实例_html/css_WEB-ITnose的详细内容...

  阅读:28次