css3 不能选中元素怎么设置

html-css06

css3 不能选中元素怎么设置,第1张

不是不能选中是选中的颜色改了透明而已

代码如下

::-moz-selection { /* Code for Firefox */

    background: transparent

}

::selection {

    background: transparent

}

望采纳

body{

    -webkit-user-select:none

    -moz-user-select:none

    -ms-user-select:none

    user-select:none

}