$('.mydiv ul li:nth-child(4)').addClass("nth");
There are atleast 8 li
's 开发者_开发问答in there but it only selects 4th but not 8th?
$('.mydiv ul li:nth-child(4n)').addClass("nth");
pay attention to the 4n
$('.mydiv ul li:nth-child(4)').addClass("nth");
There are atleast 8 li
's 开发者_开发问答in there but it only selects 4th but not 8th?
$('.mydiv ul li:nth-child(4n)').addClass("nth");
pay attention to the 4n
上一篇:《爱是那么真》MP3歌词-李玟?
“佛寺乘船入”下一句是什么?:下一篇
精彩评论