table中td元素,不可操作、不可编辑、获取不到焦点、不能被选中

在要让文本不能被选中的TD内加入
onselectstart="return false" onselect="document.selection.empty()"

<table>
<tr><td onselectstart="return false" onselect="document.selection.empty()">宝宝(不能选)</td></tr>
<tr><td>宝宝(可以选)</td></tr>
</table>

posted @ 2019-01-25 09:35  梁栋  阅读(2621)  评论(0编辑  收藏  举报