css中自定义字体

css代码如下:

@font-face {
  font-family: 'HelveticaNeueLTPro-Th';
  src: url('../fonts/HelveticaNeueLTPro-Th.eot');
  src: url('../fonts/HelveticaNeueLTPro-Th.eot?#iefix') format('embedded-opentype'),
  url('../fonts/HelveticaNeueLTPro-Th.woff') format('woff'),
  url('../fonts/HelveticaNeueLTPro-Th.ttf') format('truetype'),
  url('../fonts/HelveticaNeueLTPro-Th.svg#HelveticaNeueLTPro-Th') format('svg');
  font-weight: normal;
  font-style: normal;
}

//使用
.aaaa{ font-family: "HelveticaNeueLTPro-Th"; }

  

posted @ 2018-10-12 10:49  l_strive  阅读(462)  评论(0编辑  收藏  举报