css 常用属性


border:1px solid #000;

padding:20px 30px 40px; 	// 上 右 下 左

list-style:none; 	// 去小圆点

text-indent:2em; 	// 首行2空格

letter-spacing:10px; 	// 正负 文字间距

text-decoration:none; 	// 去下划线

text-decoration:underline; 	// 加下划线

font-style:italic; 	// 斜体

font:14px/24px"宋体"; 	// 字号,行高,字体

font-family:"Arial","宋体";

background: blue url(../img/img.jpg) no-repeat 10px 10px; 	// 颜色,图片地址,是否重复,定位

cursor:pointer; 	// 鼠标小手

cursor:text; 	// 输入

cursor:default; 	// 默认

overflow:hidden; 	// 需要撑大的盒子的父级加

opacity:0.6; filter:alpha(0,0,0,0.5); 	// 背景色透明

border-radius:10px; 	// 圆角

box-shadow:3px 5px 5px 1px; 	// 阴影



p:first-child 	// 第一个
p:last-child 	// 最后一个



Table of Contents