html - How to change Alternate Table Row Colors in struts -
i'm using <logic:iterator>
tag display table info this
<logic:iterate id="lt" name="lasttoken" scope="request"> <tr> <td class="tblhometd"><bean:write name="lt" property="tokennumber" format="#"/></td> <td class="tblhometd"><bean:write name="lt" property="adjustmenttime" format="hh:mm:ss"/></td> <td class="tblhometd"><bean:write name="lt" property="actualfinishedtime" format="hh:mm:ss"/></td> <td class="tblhometd"><bean:write name="lt" property="consultationtype"/></td> <td class="tblhometd"><bean:write name="lt" property="mobileno" format="#"/></td> <td class="tblhometd"><bean:write name="lt" property="consultationstatus"/></td> <td class="tblhometd"><bean:write name="lt" property="smsstatus"/></td> </tr> </logic:iterate>
now want alter background color alternate rows
how can ????
thanks in advance
use
tr td{ background:yellow } tr:nth-child(odd) td{ background:red }
demo
html css css3 struts
No comments:
Post a Comment