IE crossing out pseudo element CSS?

后端 未结 6 812
一整个雨季
一整个雨季 2020-12-04 16:20

I\'ve been trying to get a few pseudo elements to work on IE, but it just doesn\'t let me.

It crosses out the CSS and acts like it\'s not there, which kinda aggrevat

6条回答
  •  清歌不尽
    2020-12-04 17:11

    I had this exact same issue! You must give your :before and :after pseudo elements a display property.

    Add the following to the :before and :after.

    display: block; 
    

    This should fix your issue. :)

提交回复
热议问题