li:last-child doesn't seem to work in IE8

前端 未结 7 1980
别那么骄傲
别那么骄傲 2021-01-20 05:54

Below is my html structure

  • Home
  • About
  • Feedb
7条回答
  •  一向
    一向 (楼主)
    2021-01-20 06:40

    Try to use something like that:

    .footerMenu li {background-color: expression(this.previousSibling==null?'red':'green');}
    

提交回复
热议问题