- 0133技术站
- 联系QQ:88526
- QQ交流群

- 微信公众号

此布尔属性表示用户不能与button交互。如果属性值未指定,button继承包含元素,例如<fieldset>;如果没有设置disabled属性的包含元素,button将可交互。
不像其它浏览,Firefox默认页面加载时持续禁用Button的动态状态。使用autocomplete属性可控制此特性。
所有主流浏览器都支持 disabled 属性
无
在 XHTML 中, 属性不允许简写, disabled 属性必须定义为
<button disabled="disabled">
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <button type="button" disabled>点我</button> </body> </html>
点击 "运行实例" 按钮查看在线实例
推荐手册