2010-09-23 152 views
0

需要幫助這個人嗎?在這個問題上,如果你將縮小瀏覽器的草地塔的大小。由於位置:固定頂部:270px;這是爲草&塔會在頁面上的正確位置。如果我會放一個top:0;它的好處在於它堅守頂端,但問題在於雲還有另一個div。任何人都可以幫助我解決這個問題?雙背景圖像頂部和底部

這裏的鏈接:http://dev.htcando.com/ASC/Agrilife/

#try { position:fixed; top:270px; left:0; width:100%; height:100%;} 
#try img {width:100%; height:100%;} 
/*#mid {display:block; height:100%; overflow:hidden;width:100%;z-index:1;}*/ 
html, body { height:100%; width:100%;max-height:100%;position:relative;overflow: auto;} 
#up {background:#d0efea url(images/up-img.jpg) repeat-x; } 
body {font:bold 12px/1.6em Arial, Helvetica, sans-serif;margin: 0; padding: 0;text-align:left;color: #000000; min-width: 800px; 
     min-height: 600px;} 
#top {background:#8dba76; padding:5px; font-size:12px;} 

HTML

<div id="try" class="img"> 
<img src="images/bottoms.jpg" /> </div> 

<div id="up"> 
+0

我只是想問是否有另一種方法的位置:相對;頂:270px;因此如果您將調整瀏覽器大小,它將不會移動或調整大小。 – Marskie 2010-09-23 16:10:33

回答

-1

我沒有看到你的問題,我看着在IE & Chrome瀏覽器的網站,它看起來很好..那麼究竟是什麼問題呢?

+0

放大和縮小。圖像大小調整。 – 2010-09-23 18:53:07

+0

我明白了,但它在調整大小時看起來不錯(實際上非​​常好),所以我的問題是,爲什麼這很重要?作爲設計師和程序員,我不認爲這是一個問題。 – Nicknameless 2010-09-23 18:55:07

相關問題