网页预览时,仿宋 | 您所在的位置:网站首页 › 前端字体设置方正小子宋简体 › 网页预览时,仿宋 |
问题描述
样式中使用的仿宋_GB2312 在页面不中显示 解决办法在服务器上安装仿宋_GB2312字体 下载字体方式: 链接: https://pan.baidu.com/s/1rPgZ0B9KI8uRmkUWVpKYBg 提取码: tjax 将字体文件放在C:\Windows\Fonts 使用uni-app 时,PC端特殊字体显示正常,移动端不显示特殊字体问题描述: 1、服务器为linux服务器 2、pc端仿宋、方正大标宋、windings字体都显示正常,移动端这些字体都显示为默认字体 解决方法: 在自己的项目中加上字体文件 @font-face { font-family: "Wingdings"; /*注意路径写法*/ src:url('~@/static/font/Wingdings.ttf') format('truetype'); } @font-face { font-family: "仿宋"; src:url('~@/static/font/simfang.ttf') format('truetype'); } @font-face { font-family: "方正小标宋简体"; src:url('~@/static/font/FZXBSJW.TTF') format('truetype'); } |
CopyRight 2018-2019 实验室设备网 版权所有 |