如何在C#中制作Dynamic div?

编程入门 行业动态 更新时间:2024-10-18 18:28:37
本文介绍了如何在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标头 [ ^ ] 固定标题的网格视图 [ ^ ] 这似乎也是一个相当不错的答案. > stackoverflow/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. stackoverflow/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?

本文发布于:2023-11-11 23:08:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1579801.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   Dynamic   div

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!