2024年5月29日发(作者:)

常用的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(百分比)

定义超链接: