文本

font-size 文字大小
font-weight 文字加粗(bold加粗/normal正常)
font-style 文字倾斜(italic倾斜/normal正常)
line-height 行高 (文字在一行上下居中)
font-family 字体

font:font-weight font-style font-size/line-height font-family;
font:font-size font-family(必须要写)

     color 文字颜色
text-indent 首行缩进 (1em=1个文字大小)
text-align 文本对齐方式(left/center/right)
text-decoration 文本修饰(underline下划线/line-through 删除/overline 上划线/none)    
     letter-spacing字间距
     word-spacing空格之间的间距,单词与单词之间的间距

vertical-align
vertical-align: baseline|sub|super|top|text-top|middle|bottom|text-bottom

inherit强制继承 例如:
font-size: inherit;
font-family: inherit;
font-weight: inherit;
font-style: inherit;
line-height: inherit;
color: inherit;
text-decoration: inherit;
text-align: inherit;
text-indent:inherit;

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 深入理解傅里叶变换Mar 12, 2017 这原本是我在知乎上对傅立叶变换、拉普拉斯变换、Z变换的联系?为什么要进...
    价值趋势技术派阅读 5,824评论 2 2
  • 1.4.3.1字体 font-size font-size:<length>| | |<relative-size...
    每日活菌阅读 190评论 0 0
  • 文本样式的font属性 文本大小:font-size示例:{fount-size:value;}说明:属性值为数字...
    筱南独舞阅读 395评论 0 1
  • 水母(英文:Jellyfish)是一种低等的海产无脊椎浮游动物,也是一种神奇的动物。 水母的出现比恐龙还早...
    TaylorLoverrr阅读 2,350评论 1 4
  • 晨,第二日。
    Suxue阅读 190评论 0 0