【问题标题】:IE 11 disable="True" not working [duplicate]IE 11 disable="True" 不工作 [重复]
【发布时间】:2015-07-15 03:20:34
【问题描述】:

谁能帮助我了解为什么 disable="true" 的按钮在 Internet Explorer 11 中不起作用而 disable="disable" 起作用?还提供一个适用于 IE 9 和 IE 11 的解决方案。

【问题讨论】:

  • "禁用" != "禁用" ;)

标签: html css yui


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2015-09-23
    • 1970-01-01
    • 2019-01-24
    • 2012-11-27
    • 2016-05-07
    • 2014-01-08
    • 2011-06-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多