*{ margin: 0px; /*设置网页中所有的元素 外边距 为0*/ }
#nav{ width: 230px; /*最大的div宽度*/ }
.title{ height: 30px; /*div的高度*/ line-height: 30px;/*内容的行高*/ color: white; /*字体颜色*/ background:red url("../image/arrow-down.gif") 210px no-repeat; /*背景*/ }
ul{ background-color: #D7D7D7; /*背景颜色*/ }
li{ background-image: url("../image/arrow-right.gif") ; /*背景图片*/ background-repeat: no-repeat; /*背景图片的填充方式*/ background-position: 173px; /*背景图片的位置*/ line-height: 30px; /*内容的行高*/ }
原标题:css01 背景设计
关键词:CSS