1 常用的CSS 标签标记属性翻译注释 这里收藏一些编写网页的常用属性,便于以后编写网页查询。" "这里收藏一些编写网页的常用属性,便于以后编写网页查询。 1、字体属性(type) font-family(使用什么字体) font-style(字体的样式,是否斜体):normal/italic/oblique font-variant(字体大小写):normal/small-caps font-weight(字体的粗细):normal/bold/bolder/lithter font-size(字体的大小):absolute-size/relative-size/length/percentage 2、颜色和背景属性(backgroud) color(定义前景色,例如:p{color:red}) background-color(定义背景色) background-image(定义背景图片) background-repeat(背景图案重复方式):repeat-x/repeat-y/no-repeat background-attachment(设置滚动):scroll(滚动)/fixe(固定的) background-position(背景图案的初始位置):percentage/length/top/left/right/bottom 3、文本属性:(block) 定义间距: word-spacing(单词之间的距离) letter-spacing(字母之间的距离) text-decoration(定义文字的装饰):nore/underline/overline/line-through/blink vertical-align(元素在垂直方向的位置):baseline(基线)/sub/super/top/text-top/middle/bottom/text-bottom text-transform(使文本转换为其它方式):capitalize(大写)/uppercase(首字母大写)/lowercase(小写)/none text-align(文字的对齐):left/right/center/justify text-indent(文本的首行缩进)length/percentage line-height(文本的行高):normal/numbet/lenggth/percentage(百分比) 定义超链接: a:link {color:green;text-decoration:nore}(未访问过的状态) a:visited {color:ren;text-decoration:underline;16pt}(访问过的状态) a:hover {color:blue;text-decoration:underline;16pt}(鼠标激活的状态) 4、块属性(block) 边距属性: margin-top(设置顶边距) 2 margin-right(设置右边距) margin-bottom(设置底边距) margin-left(设置左边距) 填充距属性: padding-top 设置顶端真充距) padding-right 设置顶端真充距) padding-bottom 设置顶端真充距) padding-left 设置顶端真充距) 5、边框属性(border) border-top-width(顶端边框宽度) border-right-width(右端边框宽度) border-bottom-width(底端边框宽度) border-left-width(d 左边框宽度) border-width(一次定义边框宽度) border-color(设置边框...