nth-of-type时间:2023-03-09 04:43:54 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作区分