HTML字体属性、背景属性

1.字体颜色

color

2.字体大小

font-size

3.字体

font-family

注意:多个字体用逗号链接 先解析第一个字体吐过没有解析后面的依次类推

4.字体加粗

font-weight

    取值:加粗 100-900
               100细体 ligter
               400正常 normal
               700加粗 bold
               900更粗体 border
 
5.字体倾斜
font-style
属性值:
    italic 倾斜
            oblique 更倾斜
            normal 正常
 
6.文本对齐方式
text-align:left/center/right;
text-align:;justify 两端对齐 对多行英文起作用
 
7.行高
line-height
 
8.文本间距
字间距:latter-spacing
词间距:word-spacing
 
9.首航缩进
text-indent
 
10.文本修饰
text-decoration:;
属性值:underline下划线  line-through删除线  overline上划线 none没有线
 
11.文本属性
text-transform:;
属性值:capitalize全部单词首字母大写  lowercase全部单词小写 uppercase全部字母大写
 
12.font简写
font: italic bold 20px/1em 微软雅黑;
注意:粗、写可以不用写,其他不行,否则失效
posted @ 2022-03-12 14:55  学-  阅读(294)  评论(0编辑  收藏  举报