让我们说:
#wrapper {
width: 600px;
height: auto !important;
height: 49.5em;
min-height: 49.5em;
}
#div1 {
width: 200px;
height: auto !important;
height: 49.5em;
min-height: 49.5em;
}
#div2 {
width: 200px;
height: auto !important;
height: 49.5em;
min-height: 49.5em;
}
#div3 {
width: 200px;
height: auto !important;
height: 49.5em;
min-height: 49.5em;
}
是否有可能使#div1和#div2在高度上扩展到#div3中扩展的高度?
示例:当#div3中的内容扩展为60em时,#div1和#div2也会根据#div3扩展为60em
抱歉错误的标签,不知道如何实现这一点。