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>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM