css中文字体乱码解决方案

把css编码和html页面编码统一起来。如果html页面是utf-8、css、js也统一成utf-8编码。如果html页面是gb2312、css、js也统一成gb2312编码。

还有一个避免中文乱码的办法就是把中文字体写成英文来表示,例如:font-family:"宋体";font-family:"微软雅黑"; 对应:  font-family:"simsun";font-family:"Microsoft YaHei";

相关文章:

  • 2022-12-23
  • 2021-09-30
  • 2022-03-10
  • 2021-09-11
  • 2021-11-21
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2021-09-08
  • 2021-07-15
  • 2021-12-26
  • 2021-08-25
相关资源
相似解决方案