作者cgcat (小綿羊趕集)
看板Web_Design
標題[問題] 為什麼他還是會跑到下面
時間Wed Sep 5 16:10:37 2007
我的html
<div id="wrapper">
<div id="header">
<div id="logo">
<img src="images/logo.jpg" width="125" height="80" border="0"
alt="manbonet" />
</div>
<div id="top">
<img src="images/ad.jpg" width="468" height="60" border="0" />
</div>
<div style="clear: both"></div>
</div>
<div id="content">
</div>
<div id="footer">
</div>
</div>
css
#wrapper {
width:100%;
height:100%;
margin:0;
padding:0;
}
/* header
---------------------------------------------------------------*/
#header {
background-image:url(../images/header_bg.jpg);
background-repeat:repeat-x;
height:95px;
padding-left:20px;
}
#logo {
float:left;
height:95px;
}
#top {
float:left;
height:95px;
}
為什麼top 會跑到logo下面呢?
當我將瀏覽器縮小的時候!!
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.248.141.208
推 xz0526:不懂..你top不是本來就設在logo下面嗎 09/05 23:24
推 yudian:定義#top和#logo的寬度應該就可以了。 09/06 12:41