我正在一个.NET web应用程序中使用响应式的Bootstrap表格来显示信息。每当返回大量信息时,水平滚动条会出现在页面底部。因此,用户必须向下滚动以访问水平滚动条,以查看当前未显示在屏幕上的信息。我想强制水平滚动条始终可见。我尝试将“Position: absolute”添加到表格div标签中,但似乎会干扰响应式格式。在使用响应式表格时是否有办法始终显示水平滚动条?
<div id="divGridResults" style="overflow-x: scroll;" runat="server">
<div class="table-responsive;text-center; ">
<asp:GridView ID="gvEmployee" runat="server" Width="100%" AutoGenerateColumns="False"
ClientIDMode="Static" CssClass="table table-striped table-hover table-condensed "
AllowSorting="True" PagerStyle-CssClass="bs-pagination">
<Columns>
<asp:BoundField DataField="Emp_ID" HeaderText="ID" SortExpression="EMP_ID" />
<asp:BoundField DataField="First_Name" HeaderText="First Name" SortExpression="First_Name" />
<asp:BoundField DataField="Last_Name" HeaderText="Last Name" SortExpression="Last_Name" />
<asp:BoundField DataField="Manager" HeaderText="Manager" SortExpression="Manager" />
<asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" />
<asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" />
<asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
<asp:BoundField DataField="State" HeaderText="State" SortExpression="State" />
<asp:BoundField DataField="Zip" HeaderText="Zip" SortExpression="Zip" />
<asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" />
<asp:BoundField DataField="Dept" HeaderText="Department" SortExpression="Dept" />
</Columns>
<PagerSettings NextPageText="Next" PreviousPageText="Back" Mode="NumericFirstLast " />
<PagerStyle CssClass="bs-pagination" />
</asp:GridView>
</div>
</div>