我在面板下面有gridview它是垂直滚动但是它滚动了标题我也必须停止标题移动insted我必须只滚动内容并保持标题固定。
<div id=" " style="position:relative; height:150px; overflow:auto">
<asp:GridView ID="Extras" EnableViewState="true"
runat="server" Width="100%" bAllowAdd="false" ShowFooter="true" bEnableBulkEdit="true"
AutoGenerateColumns="False">
<HeaderStyle CssClass="gridViewHeader"/>
<Columns>
<asp:BoundField DataField="Days" HeaderText="Day" ReadOnly="true" ItemStyle-Width="8px" /> <asp:BoundField DataField="SupplierName" HeaderText="Supplier" ReadOnly="true" ItemStyle-Width="30px" />
<asp:BoundField DataField="SupplierID" HeaderText="" ReadOnly="true" HeaderStyle-HorizontalAlign="Right"
Visible="false" />
</Columns>
</asp:GridView>
</div>