问题描述
- 希望仅在数据表中禁用此选择功能。
- 可以以
thread 2 run while making the thread 3 keep stopping
为例here
解决方法
为user-select
和td
标签使用th
td,th {
user-select: none;
-webkit-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
}
,
尝试将其添加到CSS中以禁用整个身体的选择
body {
-webkit-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
}