:nth-child is not working in IE

前端 未结 2 494
执念已碎
执念已碎 2020-12-12 00:58

Ive searched for my specific problem and can\'t find it... I hope any of you guys can help.

Im trying to get nth-child to work in IE - now Ive read that you can do i

2条回答
  •  醉梦人生
    2020-12-12 01:21

    IE doesn't support :nth-child. Use jQuery with the regular CSS selector, e.g.:

    $('dl dt:nth-child(2n)') // gets every 2nd dt
    

提交回复
热议问题