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