Css attribute selector for input type=“button” not working on IE7

前端 未结 8 1294
执笔经年
执笔经年 2020-12-05 20:38

I am working on a big form and it contains a lot of buttons all over the form, therefore I am trying to get working input[type=\"button\"] in my main css file so it would ca

8条回答
  •  一个人的身影
    2020-12-05 21:20

    I was struggling getting input[type=button] selectors working in IE7 or IE8. The problem turned out to be that the HTML Pages were missing a "!DOCTYPE" declaration. Once I added

    
    

    Then everything worked fine. You can obviously use a different "!DOCTYPE" declaration to suit your requirements.

提交回复
热议问题