如何在C#中制作Dynamic div? [英] How to make Dynamic div in C# ?

查看:194
本文介绍了如何在C#中制作Dynamic div?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个带有页眉和页脚的网页,并希望在页眉和页脚的中间进行div设置,以使div中段的高度为500,而div中的内容可以说是6-7张具有更高高度的图像,因此它将与页脚重叠.
现在我想要的是我希望div自动增加尺寸,而添加图像时不与页脚重叠.页脚自动向下移动n div自动增加其尺寸.
请告诉我解决方法.
Thnx

I have created a webpage with Header and Footer and want to make div in the middle of header and footer such that suppose the height of the mid div is 500 and content in the div let say,6-7 images having more height , so it will overlap to footer.
Now what i want is that i want div to automatically increases the size without overlapping with footer when images are added footer automatically shift downward n div increases its size automatically.
Please tell me the solution.
Thnx

推荐答案

以下CP文章使用div包裹gridview的内容来创建具有固定标题的可滚动div.您可以根据需要使用与数据div上相同的过程.
使用JavaScript和CSS冻结ASP.NET GridView标头 [ ^ ]
固定标题的网格视图 [> http://stackoverflow.com/questions/33080/setting-the-height-动态地 [ ^ ]
The following CP articles use a div to wrap the contents of a gridview to create a scrollable div with fixed header. You can use the same process that is used on the data div for what you need.
Freezing ASP.NET GridView Header With JavaScript and CSS[^]
Grid View with Fixed Header[^]

This seemed like a reasonably good answer as well.
http://stackoverflow.com/questions/33080/setting-the-height-of-a-div-dynamically[^]


它基本上是将div基值输入到datbase并用于控制数据列表或转发器.... u可以轻松...访问
its basically to div base value entered to datbase and use to control datalist or repeater....u can easy...access


这篇关于如何在C#中制作Dynamic div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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