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

前端 未结 8 1291
执笔经年
执笔经年 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:10

    They work for me in IE7 (both forms, with and without quotes).

    Maybe there's another selector that is masking yours. You could try making your selector more specific in order to give it more priority, e.g.:

    body form input[type="button"] {
    background: red;
    }
    

提交回复
热议问题