1
這是我工作的代碼,但我無法理解我出錯的地方。地圖應該顯示在頁眉和頁腳之間的完整高度,但它看起來實際上是在頁眉和頁腳之下延伸的。這是一個問題,因爲它涵蓋了Google版權信息和控件的一部分。谷歌地圖佔用了整個高度
誰能告訴我哪裏出了問題?
html, body, #container { height: 100%; }
body { z-index:1; position:relative; }
body > #wrapper { height:100%; margin:0 auto; width:100%; }
body > #wrapper > #header { z-index:3; position:relative; height:45px; background:#ccc; }
body > #wrapper > #container { z-index:2; position:relative; height:auto; min-height:100%; background:#eee; margin-top:-45px; padding-top:45px; padding-bottom:25px; box-sizing:border-box; margin-bottom:-25px; }
body > #wrapper > #footer { height:25px; background:#333; color:#fff; z-index:3; position:relative; }
.left {float: left;}
.right {float: right;}
謝謝!完美 – Jimmy 2013-02-17 23:19:51
不客氣! – tnsingle 2013-02-18 01:43:12