简体   繁体   English

按钮不会在Internet Explorer 10中禁用

[英]button is not disabling in internet explorer 10

I have defined the button as 我已将按钮定义为

  <input type="button" id="disable" disabled="disabled" value="Upload" />

But the button is not looking like disabled in chrome, firefox and safari. 但是该按钮看起来并不像在chrome,firefox和safari中禁用。 and in ie it is even clicking. 在即,甚至点击。

You don't have to write disabled="disabled". 您不必编写disabled =“ disabled”。 use this code. 使用此代码。

<input type="button" id="disabled" value="upload" disabled />

Use disabled attribute without argument. 使用不带参数的禁用属性。

<button disabled></button>
<input type="button" disabled value="input"/>

http://jsfiddle.net/4GAWv/ http://jsfiddle.net/4GAWv/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM