一、边框圆角属性:border-radius:
border-radius:0px 1px 2px 0px;
border-radius:0px 5px 0px;
border-radius:10px 2px;
二、盒子阴影:box-shadow:
box-shadow: 10px 10px 20px blue inset;
三、ul li的样式list-style-type:
list-style-type: none;
list-style-type: circle;
list-style-type: decimal;
list-style-type: disc;
list-style-type: disclosure-closed;
list-style-type: disclosure-open;
四、背景属性background-size:
background-size: lenght;
background-size: percentage;
background-size: cover;
background-size: contain;
五、线性渐变background:linear-gradient
background:linear-gradient(to top,red,green,yellow)
/*linear-gradient(to ‘方位’,)to后面写渐变朝向 用逗号隔开后写颜色,每个颜色都用逗号隔开*/
六、径向渐变background: radial-gradient
background: radial-gradient(red 5%,green,yellow);
七、文本text-overflow属性
overflow:hidden;
white-space:nowrap;
text-overflow:ellipsis;
八、字体引入@font-face
@font-face {
font-family: mafont;
src: url();
}