索引值是什么
<div class="left">
? ? ? ? <div class="div">
? ? ? ? ? 1 ?<p>div:first</p>
? ? ? ? ? 2 ?<p>:even</p>
? ? ? ? </div>
? ? ? ? <div class="div">
? ? ? ? ? 3 ?<p>:odd</p>
? ? ? ? </div>
? ? ? ? <div class="div">
? ? ? ? ? 4 ?<p>:even</p>
? ? ? ? </div>
? ? ? ? <div class="div">
? ? ? ? ? 5 ?<p>:odd</p>
? ? ? ? </div>
? ? ? ? <div class="div">
? ? ? ? ? ? 6<p>:even</p>
? ? ? ? </div>
? ? ? ? <div class="div">
? ? ? ? ? ?7 <p>div:last</p>
? ? ? ? ? 8 ?<p>:odd</p>
? ? ? ? </div>
? ? </div>
p標簽奇偶數怎么都數不對
2016-09-13
打個比方就是有6個盒子我們正常的邏輯是1,2,3,4,5,6;索引值從0開始就是0,1,2,3,4,5所以這里的奇數和偶數你看上去不對
2016-07-19
索引值是從0開始計數的, 你可能是選取的范圍搞錯了
2016-07-19
索引值是從0開始計數的,$(".left p:even") 選取的是??<p>div:first</p> ??? ?<p>:odd</p> ?以此類推