小编Ali*_*ise的帖子

如何让子div扩展到父div

您好,我在尝试让我的子 div 扩展到其所在父 div 的高度时遇到问题。

这是父 div 的 css

#wrapper #content {
    border: 1px ridge #999;
    height: auto;
    min-height: 1000px;
    width: 1100px;
    margin-top: 40px;
    margin-right: auto;
    margin-bottom: 30px;
    margin-left: auto;
    float: left;
}
Run Code Online (Sandbox Code Playgroud)

这是子 div 的 css

.tab_container {
    clear: both;
    width: 100%;
    border-right: 1px ridge #999;
    margin-bottom: 20px;
    height: 100%;
}
Run Code Online (Sandbox Code Playgroud)

有什么想法我能做什么吗?

css

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

css ×1