0
是否有可能使用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
http://doc.qt.nokia.com/qt-maemo/anchor-layout.html
不行。你需要JavaScript或jQuery來做到這一點,但亞,如果你想顯示它擴大視野比是可以 – 2012-07-26 13:15:14
是父母身高是否固定 – Faust 2012-07-26 13:16:10
是不是默認行爲? – JJJ 2012-07-26 13:17:21