【发布时间】:2014-05-27 20:05:21
【问题描述】:
我有一个包含此 HTML 的页面
<div>div 1</div>
<div>div 2</div>
<div>div 3</div>
<div>div 4</div>
... variable amount of divs
我想创建这个布局,其中页面是 100% 高和宽。前两个 div 应该在顶部,后面的所有 div 都堆叠在底部。
div 是自动生成的 - 我不能区别对待前两个(仅在样式表中)。
我怎样才能做到这一点?我只需要支持最新版本的 Chrome 和 Chromium。
--------------------------
| ---------- ---------- |
| | div 1 | | div 2 | | <-- aligned to top of page
| | | | | |
| ---------- ---------- |
| |
| | <-- variable space
| |
| ---------------- |
| | div 3 | |
| ---------------- | <-- aligned to bottom of page
| ---------------- |
| | div 4 | |
| ---------------- |
--------------------------
【问题讨论】:
-
你有什么尝试吗?
标签: css google-chrome chromium