huangdi0731 2024-03-06 20:28 采纳率: 0%
浏览 141

Chrome使用中发现部分中文乱码,请问怎么解决?

MacBook Pro 使用Chrome发现部分中文乱码的问题。重装过Chrome,清除缓存,还原配置,删掉重装,安装编码插件修改UTF-8等所有编码都没用。

对比如下:

img

后来看研发者模式排查如下:

img

看得出来,是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上。

  • 写回答

4条回答 默认 最新

  • huangdi0731 2024-03-06 21:03
    关注

    终于找到了这个CLASS的脚本:
    能否看出问题在哪里?

    .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;
    
    
    评论

报告相同问题?

问题事件

  • 修改了问题 3月6日
  • 修改了问题 3月6日
  • 创建了问题 3月6日

悬赏问题

  • ¥15 软件工程用例图的建立(相关搜索:软件工程用例图|画图)
  • ¥15 如何在arcgis中导出拓扑关系表
  • ¥15 处理数据集文本挖掘代码
  • ¥15 matlab2017
  • ¥15 在vxWorks下TCP/IP编程,总是connect()报错,连接服务器失败: errno = 0x41
  • ¥15 AnolisOs7.9如何安装 Qt_5.14.2的运行库
  • ¥20 求:怎么实现qt与pcie通信
  • ¥50 前后端数据顺序不一致问题,如何解决?(相关搜索:数据结构)
  • ¥15 基于蒙特卡罗法的中介效应点估计代码
  • ¥15 罗技G293和UE5.3