有关div标签的问题 [英] Problem regarding div tag

查看:141
本文介绍了有关div标签的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2010.我有一个Id = "ControlDiv"的div标签,其中包含多个div标签和表格.

我的问题是,当我当时动态隐藏并显示这些sub div标签时,它会考虑该div标签不可见的空间.如何从"controldiv"标记中删除该空间.

我使用了所有方法,例如设置高度和宽度自动溢出等.

请给我最好的解决方案.
在此先感谢...

I am using Visual studio 2010 . i have a div tag having Id ="ControlDiv" that contains multiple div tag and tables.

My problem is that when i dynamically hide and show these sub div tags at that time it consider spaces for that div tags that are invisible. How to remove that space from "controldiv" tag.

i used all methods like set height and width overflow auto etc.

Please give me the best solution.
Thanks in advance...

推荐答案

尝试从您的情况下为controldiv的parendiv中删除高度和宽度.
Try to remove the height and width from the parendiv that is controldiv in your case.


您尝试过SubDiv.Visible=false;吗?


这篇关于有关div标签的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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