How to style <input type=“text”> in IE6 CSS?

后端 未结 4 878
情歌与酒
情歌与酒 2021-01-01 17:59

Is there any elegant way of applying a certain style to all elements under IE6? I can do it with some JavaScript, but I was wonderin

4条回答
  •  庸人自扰
    2021-01-01 18:23

    If you happen to be using jQuery, try adding this to your onDOMready:

    $('input[type="text"]').addClass('typeText');
    

    Then in your CSS you could so something like:

    input.typeText, input[type="text"] {
         color:#efefef;
    }
    

提交回复
热议问题