Are CSS3 ::before and ::after pseudo elements supported by IE9 or not?

前端 未结 3 1780
栀梦
栀梦 2020-11-28 12:55

On this MS compatibility table it says, IE9 does not support pseudo-elements ::before and ::after, but when I try it seems it does... see JSBin

3条回答
  •  情歌与酒
    2020-11-28 13:39

    As quoted from http://www.w3.org/community/webed/wiki/Advanced_CSS_selectors

    CSS3 pseudo-element double colon syntax Please note that the new CSS3 way of writing pseudo-elements is to use a double colon, eg a::after { ... }, to set them apart from pseudo-classes. You may see this sometimes in CSS. CSS3 however also still allows for single colon pseudo-elements, for the sake of backwards compatibility, and we would advise that you stick with this syntax for the time being.

提交回复
热议问题