nth-of-type

ul li{ height:53px; line-height:53px; border-top:1px solid #e5e5e5;  display:block;color:#444;     }

ul li:nth-of-type(1){  border-top:0; }

当只有第一条数据和其他数据不同时,可以使用nth-of-type作区分

原文地址:https://www.cnblogs.com/wangbei2016/p/5531358.html