chaoyong

在引入前端框架部分功能时,有时需要配置字体样式.可以这样配置:在 .ttf的同级目录下,创建icon.css文件,写入:

@font-face {font-family: "element-icons";
src: url(\'./element-icons.ttf\'); /* IE9*/
src: url(\'./element-icons.ttf\') format(\'embedded-opentype\'), /* IE6-IE8 */
url(\'./element-icons.ttf\') format(\'truetype\'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url(\'./element-icons.woff\') format(\'svg\'); /* iOS 4.1- */
}

分类:

技术点:

相关文章:

  • 2021-11-01
  • 2021-11-01
  • 2021-11-01
  • 2021-11-22
  • 2021-06-23
  • 2021-12-20
猜你喜欢
  • 2021-10-07
  • 2021-12-21
  • 2021-09-11
  • 2021-06-24
  • 2021-10-07
  • 2021-10-17
相关资源
相似解决方案