css设置字母数字字体库信息

引入字母数字字体库,当前展示效果如下:
css设置字母数字字体库信息
对于css的引入font-face设置

@font-face {
  font-family: "Source Sans Pro";
  src: local("Source Sans Pro"), url("/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf");
}
@font-face {
  font-family: "Source Sans Pro";
  src: local("Source Sans Pro Light"), url("/fonts/Source_Sans_Pro/SourceSansPro-Light.ttf");
  font-weight: 300;
}
@font-face {
  font-family: "Source Sans Pro";
  src: local("Source Sans Pro Semibold"), url("/fonts/Source_Sans_Pro/SourceSansPro-Semibold.ttf");
  font-weight: 600;
}
@font-face {
  font-family: "Roboto Mono";
  src: local("Roboto Mono"), url("/fonts/Roboto_Mono/RobotoMono-Regular.ttf");
}
@font-face {
  font-family: "Dosis";
  src: local("Dosis Medium"), url("/fonts/Dosis/Dosis-Medium.ttf");
  font-weight: 500;
}

在html中标签引用

body {
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}
上一篇:HBase概念介绍及典型案例分析


下一篇:CSS编码规范