0
最近Fireworks cs5を使用してCSSを生成しましたが、私のヘッダーを全幅に設定できないようです。私は様々なソリューションを試していますが、ヘッダを全幅にする。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;
}
重複:http://stackoverflow.com/questions/4716171/css-full-width-question - Didn 'あなたはちょうどこの質問を昨日聞き、答えを正しいとマークしますか? – polarblau
問題は、cssを生成する方法です。昨日、絶対位置を使用してdivを中央に配置しましたが、いくつかの画像を中心に問題がありました。私はすぐに私のページを実際に中心に置くことができました私の混乱の原因。 – Gandalf
これは以前使用していました。 #Div { 位置:絶対; \t margin-left:0px; \t margin-top:0px; \t display:インライン; \t float:left; \t margin-bottom:0; \t背景色:#333; \t幅:960px; \t margin-left:-480px; 左:50%; \tパディングトップ:0px; \t身長:799px; } html> body #Div { \t高さ:auto; \t最小高さ:800px; } – Gandalf