IE 11 禁用="True" 不工作

IE 11 disable="True" not working

任何人都可以帮助我了解为什么 disable="true" 按钮在 Internet Explorer 11 中不起作用而 disable="disable" 有效吗?还提供一个在 IE 9 和 IE 11 中都有效的解决方案。

禁用按钮的正确且简单的方法是添加 disabled 属性:

<button>I am not disabled!</button>
<br /><br />
<input type="button" value="Disabled input" disabled/>
<button disabled>I am disabled!</button>