是否有可能仅使用 HTML 和 CSS 实现类似以下的锚定布局?
+- #parent ------
| +-# elem1 ---
| | Varibale height (depends on content) - top anchored
| | to #parent (top: 0)
| |
| +------------
| +-# elem2 ---
| | Varibale height (depends on content) - top anchored
| | to #elem1 bottom and bottom #anchored to #elem3 top
| |
| +------------
| +-# elem3 ---
| | Fixed height - top anchored to #elem2 bottom and
| | bottom anchored to #parent bottom (bottom: 0)
| |
| +------------
+----------------
编辑:#parent 元素高度可能是固定的,我正在寻找类似的东西:
http://doc.qt.nokia.com/qtquick-components-symbian-1.1/examples-native-scalability-anchors.html