日期:2014-05-17 浏览次数:20873 次
<style type="text/css">
.DoubleColorTable tr {
    background-color: expression("#EEEEEE,#DDDDDD" . split(",") [ rowIndex %
        2 ] )
}
</style>
<table class="DoubleColorTable" cellpadding="0" cellspacing="0">
            <tr height="30">
                <td>
                姓名
                </td>
                               <td>
                班级
                </td>
</tr>
<%ArrayList ar=session.getattrutire("student");
for(int i=0;i<ar.size();i++){
Student st=(Student)ar.get(i);
%>
<tr>
<td><%=st.getname()%></td>
<td><%=st.getclass()%></td>
</tr>
<%}%>
        </table>