jQuery每隔5条加一条线
<script type="text/javascript">
$(document).ready(function(){
$(".list2 li:nth-child(5n)").after('<li style="margin:10px 0px;border-bottom:1px dashed #ccc;"></li>');
$(".list2").find('li').eq(-1).css('border-bottom','1px dashed #fff');
});
</script>
转载请注明:谷谷点程序 » jQuery每隔5条加一条线