Home > Article > Web Front-end > CSS disables mouse dragging of selected content_html/css_WEB-ITnose
chrome -webkit-user-select:none
firxfox -moz-user-select:none
IE needs to use JS’s onSelected event.
JS code
dom.style.MozUserSelect = 'none';//fixrox JS script that disables selection
dom.style.webkitUserSelect = 'none';
if( document.all ){//Disable selection under IE
dom.onselectstart=function(){return false;}
}