#1 - 2022-9-28 17:38
Escape0707
<html> element must have a lang attribute: The <html> element does not have a lang attribute.
请问没有人注意到不加这个属性字体在 Windows 上显示有多奇怪吗?(虽然我也主力用 Linux。。
Ref:
https://www.w3.org/International ... osing-language-tags
https://www.w3.org/International ... nguage-declarations
请问没有人注意到不加这个属性字体在 Windows 上显示有多奇怪吗?(虽然我也主力用 Linux。。
Ref:
https://www.w3.org/International ... osing-language-tags
https://www.w3.org/International ... nguage-declarations
随便找了个页面,计算值里引用了微软雅黑。系统是中文 server 2022,自带 edge。没指定默认字体确实不好,如果回退到衬线字体也有可能是 chromium 系对 cjk 的处理问题。
我目前是用 tampermonkey 之类的 userscript 插件注入我上面的主动加 lang 属性的代码来处理 bangumi.tv 和 baidu.com 的这种问题的。(夸张的说,难以想象 bangumi.tv 被我和百度列在同一句话里
至于现在的问题嘛,等新前端吧。