Changing CSS for last
  • 前端 未结 10 1582
    暗喜
    暗喜 2020-11-30 22:30

    I am wondering if there is some way to change a CSS attribute for the last li in a list using CSS. I have looked into using :last-child, but this

    10条回答
    •  广开言路
      2020-11-30 23:27

      You could use jQuery and do it as such way

      $("li:last-child").addClass("someClass");
      

    提交回复
    热议问题