How do you work around IE not supporting :after?

前端 未结 8 1651
無奈伤痛
無奈伤痛 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

    Try using something like jQuery.

    `$(function(){

    $('li').not(':last-child').append('\'');

    });`

    It doesn't clutter up the html. Also, to make this only work with IE, try using jquery compatibility.

提交回复
热议问题