摘要: .nav li:not(:last-child){ border-right:1px solie #ccc; } 使用负的 nth-child 选取元素 /* 选择前3个元素并显示它们 */ li:nth-child(-n+3){ display:block; } /* 选择第4到第8个元素并显示它 阅读全文
posted @ 2016-10-20 14:13 白色斑马线 阅读(1065) 评论(0) 推荐(0) 编辑