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-botto