CSS选取第n个标签元素

转载自:https://www.cnblogs.com/wangyongx/p/7778375.htmlhtml 一、first-childhtm first-child表示选择列表中的第一个标签。例如:li:first-child{background:#fff}blog 二、last-childget last-child表示选择列表中的最后一个标签,例如:li:last-child{back
相关文章
相关标签/搜索