如何在div中添加水平滚动条到面板顶部? [英] how to add horizontal scrollbar to top of panel in div?

查看:83
本文介绍了如何在div中添加水平滚动条到面板顶部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨先生,
告诉我在div标签中将水平滚动条添加到面板顶部的步骤。我正在使用有25列的gridview,我在底部有滚动条,我的问题是如何在gridview顶部添加水平滚动条。我尝试了下面的代码,但我没有得到解决方案,请给我解决这个问题的方法。

Default.aspx:

代码1:
**********

< div style = overflow-x:auto; overflow-y:auto; width:1200px; >
< asp:GridView ID = < span class =code-keyword> GridView1 runat = ser
ver
AutoGenerateColumns = False >
< / asp:GridView >
< / div >


代码2:
**********

< div style = overflow:scroll;宽度:1200像素; >
< asp:GridView ID = GridView1 runat = ser
ver
AutoGenerateColumns = False >
< / asp:GridView >
< / div >

解决方案

请参阅 Re:将水平滚动条添加到面板顶部 [ ^ ]。

引用:

滚动一个可以保留GridView的div怎么样?这就是我想要的:

http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div


Hi sir,
  Tell me the steps to add horizontal scrollbar to top of panel in div tag. I am using gridview having 25 columns , i got scroll bar at the bottom, my question is how to add horizontal scrollbar at the top of the gridview. I tried the below code, but i did not get the solution, Kindly give me the solution for this problem.

Default.aspx:

Code1:
**********

<div style="overflow-x:auto;overflow-y: auto; width:1200px;">
    <asp:GridView ID="GridView1" runat="ser
ver" AutoGenerateColumns="False">
  </asp:GridView>
    </div>


Code2:
**********

<div style="overflow:scroll; width:1200px;">
    <asp:GridView ID="GridView1" runat="ser
ver" AutoGenerateColumns="False">
  </asp:GridView>
    </div>

解决方案

Refer- Re: Add horizontal scrollbar to top of panel[^].

Quote:

how about scrolling a div that the GridView could be kept in? here's what I'm trying to get at:
http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div


这篇关于如何在div中添加水平滚动条到面板顶部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆