<script src="Scripts/jquery-1.5.2.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("#SET tr:odd").addClass("color1");
$("#SET tr:even").addClass("color2");
$("#SET tr").hover(function () {
$(this).addClass("color3")
}, function () {
$(this).removeClass("color3")
});
});
</script>
<style type="text/css">
*
{
margin: 0px;
padding: 0px;
}
.truecolor
{
border: 1px solid #333;
text-align: center;
}
.truecolor th
{
background-color: #333;
color: #FFF;
}
.color1
{
background-color: #fff;
}
.color2
{
background-color: #ecf6fc;
}
.color3
{
background-color: #BCD4EC;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" CellPadding="3" GridLines="None" BackColor="White"
BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1">
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle BackColor="#DEDFDE" ForeColor="Black" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#594B9C" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#33276A" />
</asp:GridView>
<br />
<br />
<br />
<asp:GridView ID="GridView2" runat="server" BackColor="White" BorderColor="#CC9966"
BorderStyle="None" BorderWidth="1px" CellPadding="4">
<FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
<PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
<RowStyle BackColor="White" ForeColor="#330099" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
<SortedAscendingCellStyle BackColor="#FEFCEB" />
<SortedAscendingHeaderStyle BackColor="#AF0101" />
<SortedDescendingCellStyle BackColor="#F6F0C0" />
<SortedDescendingHeaderStyle BackColor="#7E0000" />
</asp:GridView>
</div>
<table id="SET">
<asp:Repeater ID="rptData" runat="server">
<ItemTemplate>
<tr>
<td>
<%#Eval("name1") %>
</td>
<td>
<%#Eval("age1") %>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
Test
最新推荐文章于 2017-06-19 14:04:54 发布