CSS :before/:after Selectors in IE 6,7

前端 未结 5 1117
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 14:26

I know that :before/:after selectors are not available in IE 6,7
http://www.quirksmode.org/css/contents.html

Is there a js hack to enable support for these selec

5条回答
  •  时光取名叫无心
    2020-12-15 15:13

    Found this when trying to to create this https://gist.github.com/1133433 with support for IE 6 and 7. I had tried to use the CSS3 flexible box model, but hit a bug in web-kit when using the CSS3 Flexible Box w/ box-sizing: border-box, padding and fixed widths. It breaks the default box-align: stretch (equal heights). It was either this or resolve to use a table.

    The CSS3 Flexible Box seems to hard to control. If you want to set fixed widths, and reap the benefits of box-align: stretch as well as set the padding, you're SOL.

提交回复
热议问题