我不知道为什么,但是身体的背景颜色不会变成我想要的颜色。我可以让容器 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;}