您好,我在尝试让我的子 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 ×1