How do you work around IE not supporting :after?

前端 未结 8 1722
無奈伤痛
無奈伤痛 2021-01-21 21:07

I\'ve got a bunch of lists

  • Item 1
  • Item 2
  • Item 3
  • &l
8条回答
  •  执念已碎
    2021-01-21 21:32

    And if IE would support last-child you would not need to do the class="last" :P.

    IE support has been and will continue to be crap. IE 8 has made massive improvements, :after and :before work as you would expect, IE 7 supports them as well. Just target those two, especially since Microsoft is pushing IE 8 out over Windows Update.

提交回复
热议问题