我不知道爲什麼,但身體的背景顏色不會改變爲我想要的顏色。我可以讓容器div改變。但是,這會產生白色的邊框,這很尷尬。身體背景顏色不會改變
這裏是我的鏈接:http://weddingtesters.net76.net/index.html
body {background-color: #dde5ec;}
#main {
width: 100%;
height:auto;
overflow:auto;
position:relative;
margin:0px;
background-color:#dde5ec;}
#main div {
float:left; }
#picture {
width: 777px;
height:334px;
position: relative;
margin-bottom:0px;
margin-left: 200px;
background: url(http://weddingtesters.net76.net/pictures/johnandlaura.png);
z-index: 10;
border-left:2px solid white;
border-right:2px solid white;}
#nav {
width:200px;
height: 400px;
position:relative;
margin-left:200px;
padding:0px;
margin-bottom:25px;
background-color:#C3FDB8;
border-left: 2px solid white;
border-bottom: 2px solid white;}
#text {
width:577px;
height: 400px;
position: relative;
margin-left:0px;
padding:0px;
margin-bottom:25px;
background-color:#C3FDB8;
border-right:2px solid white;
border-bottom: 2px solid white;}
h1 {
border-right: 1px dashed black;
font: 25pt calibri;
color: black;
text-align: center;
margin:20px;}
h2 {
font: 10pt candara;}
h3{
background: url(http://weddingtesters.net76.net/pictures/transparant.png);
width:100%;
height:125px;
font: 20pt Palatino Linotype serif;
color:black;
font-style : italic;}
它正在改變。哪裏有問題?在哪個瀏覽器? – diEcho 2012-07-09 04:04:58
@ user1510951:請記住點贊有用的答案,並將答案標記爲適合您的答案。 – 2012-07-09 05:18:57