页面div 文字有点击需要时 内容不会因为点击而选中

175 阅读1分钟

遇到问题如图

image.png 只需要将样式中添加 属性就可以解决在点击某个div盒子的时候 因为其中的文字而产生不美观现象 css相关代码贴上

.text{

    -webkit-user-select:none;

     -moz-user-select:none;

     -ms-user-select:none;

     user-select:none;

}