美文网首页
css样式之font

css样式之font

作者: 不懒狮Blaise | 来源:发表于2018-05-06 10:22 被阅读0次

body {
font: normal small-caps normal 16px/1.4 Georgia;
}

/* is the same as:

body {
font-stretch: normal;
font-variant: small-caps;
font-weight: normal;
font-size: 16px;
line-height: 1.4;
font-family: Georgia;
}
*/

  • font-stretch: this property sets the font width, such as condensed or expanded.
    • normal
    • ultra-condensed
    • extra-condensed
    • condensed
    • semi-condensed
    • semi-expanded
    • expanded
    • extra-expanded
    • ultra-expanded
  • font-style: makes the text appear italicised or oblique.
    • normal
    • italic
    • oblique
    • inherit
  • font-variant: changes target text to small caps.
    • normal
    • small-caps
    • inherit
  • font-weight: sets the weight or the thickness of the font.
    • normal
    • bold
    • bolder
    • lighter
    • 100, 200, 300, 400, 500, 600, 700, 800, 900
    • inherit
  • font-size: sets the height of the font.
    • xx-small
    • x-small
    • small
    • medium
    • large
    • x-large
    • xx-large
    • smaller, larger
    • percentage
    • inherit
  • line-height: defines the amount of space above and below inline elements.
    • normal
    • number (font-size multiplier)
    • percentage
  • font-family: definies the font that is applied to the element.
    • sans-serif
    • serif
    • monospace
    • cursive
    • fantasy
    • caption
    • icon
    • menu
    • message-box
    • small-caption
    • status-bar
    • "string"

参考链接:https://css-tricks.com/almanac/properties/f/font/

相关文章

  • 2018-06-04

    字体的样式 CSS 属性: 字体样式(Font Style) 1 字体样式 {font:font-style fo...

  • css样式之font

    body {font: normal small-caps normal 16px/1.4 Georgia;} /...

  • DIV+CSS网页布局常用基础

    文件命名规范全局样式:global.css框架样式:layout.css字体样式:font.css链接样式:lin...

  • CSS篇

    CSS固定格式 标签名{要赋予的样式} CSS属性: 1.文字: font-style:文字样式 font-siz...

  • CSS网页布局的常用规范

    一、文件命名规范 全局样式:global.css; 框架布局:layout.css; 字体样式:font.css;...

  • CSS字体样式

    1、CSS样式字体属性 font-size:字号大小font-family:设置字体unicode字体 CSS注释...

  • 十三、jQuery的CSS、DOM、事件、动画

    一、CSS css(‘color’)获取样式值 css('font-size','3em') 设置样式值 .cs...

  • css字体样式

    css写字体样式 关键字为“font”,有“font-width、font-family、font-size、fo...

  • css基础知识

    一、css部分样式 1.font-weight:bold; //粗体 2.font-style:italic;//...

  • 浏览器静态资源加载优化

    CSS资源、font资源 css资源全局样式、页面级公共样式、组件级公共样式(通过合理添加类名复用样式声明、尽量减...

网友评论

      本文标题:css样式之font

      本文链接:https://www.haomeiwen.com/subject/mwwyrftx.html