开发者社区> 问答> 正文

Webstorm里如何设置中文字体格式,font-family老是。? ?

font-family:'宋体';

报错如下:
Font property font-family does not have generic default less... (Ctrl+F1)
This inspection verifies that the CSS font-family property contains a generic font name as a fallback alternative

谢谢

展开
收起
爱吃鱼的程序员 2020-08-21 13:46:24 901 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    可能引用的是外部字体文件吧,windows没有安装这种字体

    宋体不是所有操作系统的默认字体,另外加一个通用的字体以便在没有宋体的系统能够正常显示就可以了。


    确实是外部字体

    2020-08-21 13:46:42
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载