需要帮助这个人吗?在这个问题上,如果你将缩小浏览器的草地塔的大小。由于位置:固定顶部: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">
我只是想问是否有另一种方法的位置:相对;顶:270px;因此如果您将调整浏览器大小,它将不会移动或调整大小。 – Marskie 2010-09-23 16:10:33