Html 如何在listview上方的顶部插入水平滚动条

Html 如何在listview上方的顶部插入水平滚动条,html,asp.net,listview,scrollbar,Html,Asp.net,Listview,Scrollbar,我可以在ListView的底部显示一个水平滚动条,但是我可以知道如何在顶部设置它 这是我的密码: <div style =" overflow :auto ;width:auto; height:auto"> //omitted <asp:ListView ID="ListView1" runat="server" OnSelectedIndexChanged="ListView1_SelectedIndexChanged" InsertItemPosition="LastI

我可以在ListView的底部显示一个水平滚动条,但是我可以知道如何在顶部设置它

这是我的密码:

<div style =" overflow :auto ;width:auto; height:auto">
//omitted
 <asp:ListView ID="ListView1" runat="server" OnSelectedIndexChanged="ListView1_SelectedIndexChanged" InsertItemPosition="LastItem" OnPagePropertiesChanged="ListView1_PagePropertiesChanged">
//omitted
</asp:ListView>
</div>

//省略
//省略

默认情况下,浏览器仅在需要滚动的区域的底部和右侧显示滚动条。为了使滚动条位于顶部或左侧,您必须创建一些基本上模仿相反滚动条的内容

这里有一个很好的解释和示例说明如何做到这一点:

还有上面文章中提到的jQuery插件,它们也有相同的功能:

您可以使用纯css direction:rtl包装器将垂直滚动条放到左侧,请参见