ASP如何设置TABLE行背景交叉颜色
<body><formid="form1"runat="server"><divclass="table-a"style="text-align:center"><tab...
<body>
<form id="form1" runat="server">
<div class="table-a" style ="text-align :center">
<table style="margin :auto" >
<tr>
<th>姓名</th>
<th>动态</th>
</tr>
<asp:Repeater ID="UserDong" runat="server">
<ItemTemplate>
<tr class ="className">
<td><a href='WebForm2.aspx?name=<%#Eval("name")%>'><%#Eval("name") %></a></td>
<td><%#Eval("dongtai") %></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
</form>
</body> 展开
<form id="form1" runat="server">
<div class="table-a" style ="text-align :center">
<table style="margin :auto" >
<tr>
<th>姓名</th>
<th>动态</th>
</tr>
<asp:Repeater ID="UserDong" runat="server">
<ItemTemplate>
<tr class ="className">
<td><a href='WebForm2.aspx?name=<%#Eval("name")%>'><%#Eval("name") %></a></td>
<td><%#Eval("dongtai") %></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
</form>
</body> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询