我想让div的INSIDE reportRow的背景颜色具有特定的背景颜色,但我希望它切换每个其他reportRow的颜色。其他每个div的孩子的第n个孩子
我似乎无法得到第n个孩子的工作。谁能帮忙?
<div class="reportRow">
<div style="width:75px;">Date1</div>
<div style="width:360px;">Address1</div>
<div style="width:40px;">Edit1</div>
<div style="width:40px;">Print1</div>
<div style="width:40px;">Delete1</div>
</div>
<div class="reportRow">
<div style="width:75px;">Date2</div>
<div style="width:360px;">Address2</div>
<div style="width:40px;">Edit2</div>
<div style="width:40px;">Print2</div>
<div style="width:40px;">Delete2</div>
</div>
你的CSS在哪里? –