你好,我有一个问题,想让我的子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;
}
以下是子div的css
.tab_container {
clear: both;
width: 100%;
border-right: 1px ridge #999;
margin-bottom: 20px;
height: 100%;
}
有什么办法可以解决这个问题吗?