How to workaround: IE6 does not support CSS “attribute” selectors

前端 未结 7 1020
青春惊慌失措
青春惊慌失措 2020-12-18 22:21

One of the projects which I am working uses CSS \"attribute\" selector [att]

CSS Selectors

which is not supported by ie6: Support for CSS selectors in IE6 (

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-18 23:15

    If you're using jQuery on your site, another option is SuperSelectors - it goes through your site’s stylesheets, dynamically adding classes to elements so that even IE6 can bask in the glow of properly supporting CSS selectors like ul li:first-child li:nth-child(odd) a:hover.

提交回复
热议问题