一、禁用表单元素
1.dom设置属性
disabled="disabled" || disabled=true
disabled="disabled" ||
disabled=true
2.css样式(高版本浏览器)
pointer-events:none
二、禁止选中
.disabled{
-webkit-user-select:none;
-webkit-user-select:
none
;
-moz-user-select:
-ms-user-select:
user-select:
}