MacBook Pro 使用Chrome发现部分中文乱码的问题。重装过Chrome,清除缓存,还原配置,删掉重装,安装编码插件修改UTF-8等所有编码都没用。
对比如下:
后来看研发者模式排查如下:
看得出来,是index_name__qEdWi调用出了问题,我用保存下来的HTML文件,把源代码修改这个“index_name__qEdWi”后就正常,但是要怎样才能真正的解决呢?
Google Chrome 122.0.6261.112 (正式版本) (arm64)
修订版本 9d4c1072da62b411b351a38b9ed6214ab236aa7b-refs/branch-heads/6261@{#1015}
操作系统 macOS 版本14.2(版号23C64)
JavaScript V8 12.2.281.21
用户代理 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
命令行 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --flag-switches-begin --enable-features=ChromeRefresh2023TopChromeFont --flag-switches-end
可执行文件路径 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
刚才发现这个东西的代码了:
.index_name__qEdWi {
display: inline-block;
vertical-align: middle;
max-width: 560px;
color: #333;
font-size: 18px;
line-height: 24px;
font-weight: 700;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
transition: color .3s ease;
text-decoration: none;
cursor: pointer
}
我把font-weight: 700; 改成font-weight: normal 就好了。
1、这是什么原因呢?
2、如何彻底修改呢?因为刷新一下又会变回来。
另外,我查看了这个CSS文件的路径
https://tyc-fe-cdn.tianyancha.com/tyc-web-search/_next/static/css/6f285f59bcd4a3d5.css
是在网站里内嵌的,我根本无法修改。所以问题还是出在macbook上。