此关键在于样式与页面中红色字体部分
样式:
<style type="text/css">
th{
position:relative;
top:expression(this.offsetParent.scrollTop);
}
</style>
页面:
<div
style="position:relative;width:100% ;overow:scroll;margin:
0px;padding:0px;">
<asp:UpdatePanel ID="UpdatePanel1" runat="server"
style="border:solid 0px #99bbe8;padding:0px;
height:700px;margin:0px;" >
<ContentTemplate>
<asp:GridView ID="gv_List" runat="server"
Width="100%" Style="text-align: center;"
OnRowDataBound="gv_List_RowDataBound"
OnRowCreated="gv_List_RowCreated" CellPadding="4"
ForeColor="#333333" GridLines="None">
- 1
- 2
前往页