a span做成按钮时,文字不被选中样式
HTML:
<a class="button"></a>
<span class="button"></span>
CSS:
.button {
display
: inline-
block
;
-moz-user-select:
none
;
-ms-user-select:
none
;
-webkit-user-select:
none
;
user-select:
none
;
}
本文来自博客园,作者:青石小巷,转载请注明原文链接:https://www.cnblogs.com/lgnblog/p/10935703.html