举例子
div{
width: 1000px;
height: 700px;
border: 1px solid red;
background-image: url("images/img.jpg");
}
.div1{
background-repeat: repeat-x;
}
.div2{
background-repeat: repeat-y;
}
.div3{
background-repeat: no-repeat;
}
.title{
font-size: 18px;
font-weight: bold;
text-indent: 1em;
line-height: 30px;
background: #f6f6f6 url("../images/down.png") 260px 1px no-repeat;
}
#nav{
width:300px;
background: pink;
}
ul{
background: pink;
}
ul li{
height: 30px;
list-style: none;
text-indent: 1em;
background: pink url("../images/right.png") 230px 1px no-repeat;
}
a{
text-decoration: none;
color: black;
}
a:hover{
text-decoration: underline;
color: red;
}