解决font property font-family does not have generic default
来源:互联网 发布:js 计算商品选中数量 编辑:程序博客网 时间:2024/05/17 04:38
编辑器在提醒你,CSS font-famiy需要配置用来 fallback 的 generic-name。
generic-name不是指某一款字体,而是一类风格字体。例如: serif,sans-serif,monospace 等。
相关链接:
http://www.w3.org/TR/CSS21/fonts.html#generic-font-families
加上generic-family就好了,中文用serif 或 sans-serif。
示例
body{font-family:”宋体”,serif;}
参考:
1.https://segmentfault.com/q/1010000002994262
2.http://blog.csdn.net/gxdvip/article/details/51830279
0 0
- 解决font property font-family does not have generic default
- 解决font property font-family does not have generic default
- 解决font property font-family does not have generic default
- 编辑器中显示font property font-family has not generic default
- font-family,font-face
- font-family
- font-family
- font-family
- font-family
- Linux "could not open default font 'fixed'."错误解决
- Linux "could not open default font 'fixed'."错误解决
- Linux "could not open default font 'fixed'."错误解决 .
- Ubuntu12 解决BadName (named color or font does not exist)
- Ubuntu12 解决BadName (named color or font does not exist)
- could not open default font 'fixed' ...
- CSS: font-family
- CSS font-family 属性
- CSS font-family字体
- 第一行代码,第三次读后笔记,全书的目录摘要。
- 从键盘输入一个 0~99999 之间的任意数,判断输入的数是几位数
- Ubuntu安装优麒麟软件商店
- 对输入的一个整数,按相反顺序输出该数
- Nginx与IIS服务器搭建集群的方法
- 解决font property font-family does not have generic default
- HTML5表单及其验证
- <Android> Activity 和 Fragment 信息传递? Activity 和 Fragment 的 Life cycle?
- Nginx服务启动失败问题解决方法
- [LeetCode-404]Sum of Left Leaves(java)
- 为什么在css中设置了font-family:" 微软雅黑"没有用
- 最大子序列和问题
- 百度地图集成中的各种问题!
- Android高效加载大图、多图解决方案,有效避免程序OOM