我如何在asp.net中创建滚动 [英] how i can create a scroll in asp.net

查看:60
本文介绍了我如何在asp.net中创建滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我设计的页面包含5张图片,所以我想通过滚动将这些图片向左或向右移动,
我该怎么办?
Thanks


i design a page contain 5 picture,so i want with a scroll move those picture to left or right,
how i can do??
thanks

推荐答案

如果您的数据在网格中,请使用以下代码

If Your Data Is In Grid Then Use The Following Code

private void gridView1_MouseWheel(object sender,
System.Windows.Forms.MouseEventArgs e) 
{
    GridView view = (sender as GridView);
    view.LeftCoord += e.Delta;
    throw new HideException();
}


或检查此链接

http://documentation.devexpress.com/#WindowsForms/CustomDocument3066 [


Or Check This Link

http://documentation.devexpress.com/#WindowsForms/CustomDocument3066[^]

Hope This Help You


在div标签中使用图片添加像这样的滚动:

use your picture in div tag to add scroll like this :

<div style="overflow:auto"> 
<!--set fixed width and height of the div as much you want-->

<!-- insert picture here -->
</div>



希望对您有帮助.
并且,如果有帮助,别忘了将其标记为答案. :)



Hope this will help you.
And don''t forget to mark as answer if it helps. :)


1.进行div设置其固定高度宽度.
2.将溢出属性设置为自动".
3.将图片放在div
上方
1. Take a div, set its fix height width.
2. Set overflow property as "auto".
3. Put your images in above div

<div style="height:400px;width:600px;overflow:auto;">
Put your image here!
</div>


这篇关于我如何在asp.net中创建滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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