ITeye博客

禁止选中web页面内容

rabby · 2010-12-31 13:21 · Web前端 · Markdown

<body  unselectable="on" onselectstart="return false;" style="-moz-user-select:none;">
       <h1>不能被选中</h1>
</body>

 

 

 

<body oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()'>
	<h1>不能被选中</h1>
</body>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。