font-face 详解
版权声明:本文首发 http://asing1elife.com ,转载请注明出处。 https://blog.csdn.net/asing1elife/article/details/82862181 @font-face 是 CSS3 的一个模块,其主要作用是可将自定义字体嵌入到网页中,让网页字体的运用不只是限定在 Web 安全字体中 更多精彩 更多技术博客,请移步 asing1elife’s blog 语法 webFontName: 引入的自定义字体名称,将会为指定的元素添加 font-family: webFontName source: 字体路径 format: 字体格式,用于帮助浏览器识别,truetype opentype truetype-aat embedded-opentype svg … weight: 字体是否粗体 style: 字体样式 @font-face { font-family: <webFontName>; src: <source> [<format>][,<source> [<format&g...
