twitter-bootstrap'禁用'类不在ie9上工作

Tom*_*ero 4 internet-explorer-9 twitter-bootstrap

使用引导程序,当您将".disabled"类添加到按钮时,它会更改其不透明度禁用按钮单击.

这适用于当前版本的Chrome和Firefox.

Internet Explorer 9上,我得到了更改其不透明度的按钮,但是当我单击它时,它会提交我的表单(尽管光标图标变为禁止标志).

有没有什么办法解决这一问题?

Ami*_*mit 6

<button type="button" class="btn btn-large btn-primary disabled" 
   disabled="disabled">Primary button</button>

<button type="button" class="btn btn-large" disabled>Button</button>
Run Code Online (Sandbox Code Playgroud)

我尝试使用上面的按钮在所有浏览器中都适合我.

注意:

 <a href="#" class="btn btn-large btn-primary disabled">Primary link</a>
    <a href="#" class="btn btn-large disabled">Link</a>
Run Code Online (Sandbox Code Playgroud)

在链接的情况下使用禁用的类.

干杯!!!