根据CanIuse,user-select目前已经支持大部分浏览器,但如果要在IE9或更早版本使用,需要使用浏览器设备字首。代码如下。noselect{-webkit-touch-callout:无;/*iOSSafari*/-webkit-user-select:none;/*Safari*/-khtml-user-select:none;/*KonquerorHTML*/-moz-user-select:none;/*Firefox*/-ms-user-select:none;/*InternetExplorer/Edge*/user-select:none;/*无前缀,目前支持Opera和GoogleChrome*/}
