Skip to content

Instantly share code, notes, and snippets.

@callblueday
Created August 20, 2013 03:04
Show Gist options
  • Save callblueday/6276665 to your computer and use it in GitHub Desktop.
Save callblueday/6276665 to your computer and use it in GitHub Desktop.
//HTML、CSS禁止选择文字,针对IE、FF、Chrome等
<div unselectable="on" style="-moz-user-select:none;-webkit-user-select:none;" onselectstart="return false;">
你选不了我,
unselectable: IE/Opera,
-moz-user-select: FireFox,
onselectstart: IE/Safari,
-webkit-user-select:Chrome
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment