下边是自己需要设计的网页的相关代码,还在完善中。
html>
这是个网页* {
margin: 0;
padding: 0;
border: 0;
}
body{
background-color:rgb(235,235,235);
}
#div1 {
background-color: rgb(114,46,2);
width: 640px;
height: 158px;
text-align: center;
font-size: large;
position: fixed;
}
#div2{
width: 640px;
height: 360px;
background-image: url("../images/beijing.jpg");
position: relative;
top: 158px;
}
#div3{
width: 640px;
height: 146px;
background-color: white;
font-size: large;
}
#div4{
width: 640px;
height: 189px;
position: relative;
top: 7px;
background-color: white;
}
img{
width: 625px;
height: 175px;
position: relative;
top: 7px;
left: 7px;
}
#div5{
background-image: url("../images/coffe15.jpg");
width: 308px;
height: 215px;
position: relative;
left: 7px;
top: 14px;
}
#div52{
background-image: url("../images/coffe15.jpg");
width: 308px;
height: 215px;
position: relative;
left: 322px;
top: -201px;
}
#div53{
background-image: url("../images/");
width: 308px;
height: 215px;
}#div54{
background-image: url("../images/");
width: 308px;
height: 215px;
}