作者WEIREN (WEIREN)
看板Web_Design
標題[問題] 請問我用DIV為啥最下面的copyright 不會動
時間Wed Jul 23 16:26:48 2008
各位高手
小弟想請問一個問題
就是我們一般做網頁
若中間的文章變長
一般來說下面的copyright區會自動拉長
但是我用了DIV確沒有反應
ie可以 firefox 不行
有沒有解決的方法
還有蠻怪的是我在Pagebody 這個id 有設背景
但是怪的是firefox也讀不出來
有沒有人知道原因
因為我的copyright因設計的關係不能包在
下半區塊的DIV裡 所以另外在最外面
但是一直沒有變動
不知道有無高手可以幫我找bug
htm
<!--整個頁面區塊 -->
<div id=""container">
<!--上部總區塊 -->
<div id="Header">
<div id="logo">
<!--#include file="include/logo.asp" -->
<div class="subtitle"><div id="subtitle01"></div></div>
</div>
<!--#include file="include/globalmenu.asp" -->
</div>
<!--下部總區塊 -->
<div id="Pagebody">
<!--左邊子選單區塊-->
<div id="sidebar">
<!--#include file="include/s1menu.asp" -->
</div>
<!--右邊的內容區塊-->
<div id ="mainbody">
<div class="content">
5555
</div>
</div>
</div>
</div>
<!--copyright內容區塊-->
<div id="Footer" align="absbottom"></div>
css
-----------------------------------------------------------------
body {
font-size: 13px;
margin: 0px;
background-repeat: no-repeat;
background-position: center top;
background-image: url(/images/bg.jpg);
}
#container{width:1002px;margin:10px auto}
#Header{
width:1002px;
margin: 0px auto;
height:292px;
}
#logo {
width:201px;
text-algin:left;
float:left;
clear:left;
overflow:hidden;
background-color: #D7D9C1;
height: 292px;
background-image: url(/images/logo_bg.jpg);
background-repeat: no-repeat;
}
/************ 右邊選單的定義 **********/
#mainbody{
width:801px;
text-algin:left;
float:right;
clear:right;
overflow:hidden;
font-size: 13px;
color: #807f7f;
line-height: 26px;
}
/************ 中間大DIV **********/
#Pagebody{
margin: 0px auto;
width: 1002px;
background-color: #FFFFFF;
background-image: url(/images/bodybg.jpg);
background-repeat: repeat-y;
}
/************ 左邊選單的定義 **********/
#sidebar{
width:201px;
text-algin:left;
float:left;
clear:left;
background-color: #D7D9C1;
height: 100%;
}
/************ copyrright DIV **********/
#Footer{
margin: 0px auto;
height: 54px;
width: auto;
background-color: #0d5462;
background-image: url(/images/copyright_bg.jpg);
background-repeat: repeat-x;
text-align: center;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.130.112.242
推 chph:footer 加個 clear: both; 試試 07/23 18:02
→ WEIREN:謝謝 可以了說 可以問一下這是什麼意思呢? 何時要用? 07/23 18:20
→ chph:你的內容區, 使用浮動做兩欄排版, 所以其後的元素要清除浮動 07/23 20:06
→ WEIREN:對了 為什麼我的#Pagebody定義的背景圖 firefox讀不出來? 07/23 20:35
推 carlcarl:目錄沒錯嗎? 07/23 21:21
→ chph:如果images是跟網頁檔同一個層次, 最前面不要加斜線 07/23 21:32
→ WEIREN:怪的是沒加 還是沒有出現 很怪 07/24 23:11
→ WEIREN:在問一個問題 就是css當左邊的選單列 有沒有辦法讓高也100% 07/24 23:12