2011-01-19 35 views
0

我最近生成的CSS使用Fireworks CS5,我似乎無法設置我的頭我full.I一直在嘗試各種解決方案,但都沒有工作得很好迄今。我需要Div2這是我的標題爲全寬。FW生成的CSS全寬問題

這是代碼。

@charset "utf-8"; 

body { 
    background-color: #fff; 
    font-size: 62.5%; 
    margin: 0; 
    padding: 0; 
} 
body * { 
    font-size: 100%; 
} 
h1, h2, h3, h4, h5, h6 { 
    font-weight: normal; 
} 
p { 
    margin-bottom: 1.1em; 
    margin-top: 0; 
} 
#main p.lastNode { 
    margin-bottom: 0; 
} 
a:link img, a:visited img { 
    border: none; 
} 
div.clearFloat { 
    clear: both; 
    font-size: 0; 
    height: 0; 
    line-height: 0px; 
} 
li.clearFloat { 
    clear: both; 
} 
ul.symbolList { 
    display: inline; 
    float: left; 
    list-style-type: none; 
    margin: 0; 
    padding: 0; 
} 
.AbsWrap { 
    position: relative; 
    width: 100%; 
} 
.rowWrap { 
    width: 100%; 
} 
#main { 
    margin: 0 auto; 
    width: 960px; 
} 
#Div { 
    margin-left: 0px; 
    margin-top: 0px; 
    display: inline; 
    float: left; 
    margin-bottom: 0; 
    background-color: #333; 
    width: 960px; 
    padding-top: 0px; 
    height: 849px; 
} 
html > body #Div { 
    height: auto; 
    min-height: 850px; 
} 
#Div2 { 
    margin-left: 0px; 
    margin-top: 0px; 
    display: inline; 
    float: left; 
    margin-bottom: 0; 
    background-color: #e8807d; 
    width: 960px; 
    padding-top: 0px; 
    height: 99px; 
} 
html > body #Div2 { 
    height: auto; 
    min-height: 100px; 
} 
+0

重複:http://stackoverflow.com/questions/4716171/css-full-width-question - Didn'你昨天只問這個問題,並將答案標記爲正確的? – polarblau 2011-01-19 12:48:14

+0

事情是,它是如何生成css.Yesterday重要的是,我使用絕對定位以某種方式獲得div中心,但我有一些圖像居中問題。我很快發現我實際上可以中心我的網頁,我想這是我的困惑的來源。 – Gandalf 2011-01-19 12:52:23

回答

0

刪除float:leftdisplay: inline - 應該這樣做。 (和width屬性,如果沒有定義你的意思是「全寬」。)