准备材料:电脑、html文件、浏览器
1、首先打开html文件,有时候就会出现乱码。
/iknow-pic.cdn.bcebos.com/43a7d933c895d143d454b23c7cf082025aaf078a"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/43a7d933c895d143d454b23c7cf082025aaf078a?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/43a7d933c895d143d454b23c7cf082025aaf078a"/>
2、将鼠标移到页面空白处,右键单击,然后选择编码。
/iknow-pic.cdn.bcebos.com/377adab44aed2e73159ed0338801a18b87d6fabe"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/377adab44aed2e73159ed0338801a18b87d6fabe?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/377adab44aed2e73159ed0338801a18b87d6fabe"/>
3、在编码里面单机选择自动检测。
/iknow-pic.cdn.bcebos.com/03087bf40ad162d9418034031edfa9ec8a13cd47"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/03087bf40ad162d9418034031edfa9ec8a13cd47?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/03087bf40ad162d9418034031edfa9ec8a13cd47"/>
4、转换代码后,就会看到字体已恢复正常。
/iknow-pic.cdn.bcebos.com/0b7b02087bf40ad1d12b90fc582c11dfa8eccee6"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/0b7b02087bf40ad1d12b90fc582c11dfa8eccee6?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/0b7b02087bf40ad1d12b90fc582c11dfa8eccee6"/>
系统不匹配。html中导入的字体只支持英文不支持中文是因为系统不匹配造成的原因。HTML的全称为超文本标记语言,是一种标记语言,它包括一系列标签,通过这些标签可以将网络上的文档格式统一,使分散的Internet资源连接为一个逻辑整体。html要设置编码的2个head之间加入下面代码
<head>
<meta
http-equiv="Content-Type"
content="text/html
charset=gb2312">
</head>
这里的gb2312就是简体中文,也可以设置为GBK(大字符集)。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)