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

前端 未结 7 985
青春惊慌失措
青春惊慌失措 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:10

    This isn't possible without peppering your HTML with a stack of extraneous class selectors, sadly.

    I'd recommend designing your site so that your entirely valid CSS works for people using modern browsers, and that it's still usable in the IE6, albeit visually not quite right. You just have to find the right balance between getting your site up to standard and bending over backwards for users who won't upgrade. It's a broken browser, treat it as such.

提交回复
热议问题