摘要: 一、选择元素父级的子元素(包含其它不相同的元素) (1)li:first-child { }; 选择第一个子元素(注意这里没有括号) (2)li:last-child { }; 选择ul中最后一个子元素 (3)li:nth-child(3) { }; 顺数第三个元素 (4) li:nth-last- 阅读全文
posted @ 2017-12-29 17:52 hobi24 阅读(7029) 评论(0) 推荐(0)