This is a CSS style to implement the Disable mouse selection function: unselectable for IE preparation, onselectstart for Chrome, safari preparation,-moz-user-select is the cssstyle of FF:
Html,body{-moz-user-select:none;-khtml-user-select:none; user-select:none;}
<div unselectable= "on" onselectstart= "return false;" style= "-moz-user-select:none;" >
masking the selected style definition:-moz-user-select property (FF only).
property has three property values:
1, none: With none, the child elements of all the text can not be selected, including input box text can not be selected.
2.-moz-all: All the text of the child element can be selected, but the text in the input box cannot be selected.
3.-moz-none: All the text of the child element cannot be selected, except for the text in the input box.
How to disable the selection of text in a div when the mouse moves the div