javascript - font not recognized after vue build
天蓬老师
天蓬老师 2017-05-19 10:23:48
0
1
605

I set the Microsoft Yahei font for h1, [font-family: "Microsoft Yahei"]

When testing locally, it can be displayed normally on Sogou and Chrome. The F12 viewing style is as follows:
font-family: "\5FAE\8F6F\96C5\9ED1";

After the build, publish it to the server. It can be displayed normally on chrome. The F12 viewing style is as follows:
font-family: \5FAE\8F6F\96C5\9ED1; (missing double quotes)
Cannot be displayed on Sogou It displays normally, but the F12 viewing style is the same as chrome,
font-family: \5FAE\8F6F\96C5\9ED1;(double quotes are missing)

I don’t know if anyone has encountered this problem?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
左手右手慢动作

You should use the English name of the font

For the reasons, please refer to http://www.zhangxinxu.com/wordpress/2017/03/css-font-family-chinese-english/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template