我的问题是div的高度没有增长,所以我的标签阻塞了页面上的其他元素。我知道我可以设置div的高度。但我想要自动增长。我该怎么做呢?
谢谢!
<div id="div">
<asp:Button ID="btn" runat="server" Text="Button" />
<asp:Label ID="lbl" runat="server" Text="Label" />
</div>
#lbl
{
padding: 1em;
}
#div
{
//What I should do here?
}发布于 2012-02-25 00:06:14
为该div指定一个特定的高度当内容超过该div的容量时,它会自动增加高度。
#div
{
min-height:give specific height;
}发布于 2012-02-25 00:04:00
将此代码添加到#div:height:auto; overflow:hidden;
https://stackoverflow.com/questions/9433903
复制相似问题