CSS的列表样式和网页背景
HTML:
CSS:
.标题 {
font-size: 18px;
font-weight: bold;
text-indent: 1em;
line-height: 35px;
background: rgba(255, 235, 61, 0.53);
}
ul li {
/*设置行高*/
height: 30px;
/*去掉列前的圆点*/
list-style-type: none;
background: rgba(255, 122, 205, 0.64);
}
效果:

CSS:
#nav{
width: 300px;
background: rgba(255, 122, 205, 0.64);
}
.标题 {
font-size: 18px;
font-weight: bold;
text-indent: 1em;
line-height: 35px;
background: rgba(255, 235, 61, 0.53);
}
ul li {
/*设置行高*/
height: 30px;
/*去掉列前的圆点*/
list-style-type: none;
}
效果:

HTML:
CSS:
div{
width: 2000px;
height: 1400px;
border: 1px solid red;
background-image: url("image/背景图片.jpg");/*默认平铺*/
}
.div1{
background-repeat:repeat-x; /*x方向上平铺*/
}
.div2{
background-repeat:repeat-y; /*x方向上平铺*/
}
.div3{
background-repeat:no-repeat; /*不平铺*/
}
效果:



浙公网安备 33010602011771号