<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
我需要两个高度相等的单元格,并且它们需要一个在另一个下面。
它们的高度应该根据窗口大小改变。 (我用js知道窗口大小)
有可能吗?附上布局的屏幕截图。
最佳答案
很简单。就像这样:http://jsfiddle.net/wuo6yyme/
html, body {height:100%}
.container {height:100%}
.div1, .div2 {
height:49%;
width:100%;
background-color:red;
}
.div1 {margin-bottom:2%;}
关于html - 如何在另一个下方创建两个响应单元格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25724988/