使用户浏览器添加没有的字体@font-face

@font-face的用法

@font-face {
  font-family: 'MyWebFont';
  src: url('webfont.eot'); /* IE9 Compat Modes */
  src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('webfont.woff') format('woff'), /* Modern Browsers */
       url('webfont.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}

详情见

http://www.webhek.com/post/font-face.html

posted @ 2018-01-08 14:55  浪迹灬天涯  阅读(337)  评论(0编辑  收藏  举报