Need some explanation on HTML, nth-child

前端 未结 2 1541
感动是毒
感动是毒 2021-01-21 11:30

NOTE: SEE BELOW FOR CLEARER EXPLANATION

I\'m trying to figure out why this is happening.

jsFiddle 1 - Before

HTML

2条回答
  •  伪装坚强ぢ
    2021-01-21 11:57

    use these

    .big-chix:nth-child(even) { background-color:#eee; }
    .big-chix:nth-child(odd) { background-color:#aaa; }
    

    works in http://jsfiddle.net/TeqUF/2/

提交回复
热议问题