目前Safari3.1+,IE9+,ff3.5+,Opera9.5+,Chrome2+ 都支持:nth-of-type選擇器。 如果你希望在較舊的瀏覽器中支持,可以考慮jQuery。 值得注意的是jQuery中:nth-child是按照標(biāo)準(zhǔn)來實(shí)現(xiàn)的,是從1開始計(jì)數(shù),而jquery中得 :eq是從0開始。 當(dāng)然,一切視具體情況而定。 目前Safari3.1+,IE9+,ff3.5+,Opera9.5+,Chrome...
www.dbjr.com.cn/css/392...html 2025-5-19