Home  >  Q&A  >  body text

javascript - font not recognized after vue build

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?

天蓬老师天蓬老师2709 days ago532

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-05-19 10:25:48

    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/

    reply
    0
  • Cancelreply