【问题标题】:Chrome text rendering different when same page is inside an iframe当同一页面位于 iframe 内时,Chrome 文本呈现不同
【发布时间】:2021-04-23 22:49:26
【问题描述】:

当完全相同的页面显示在 iframe 中时,是否有人注意到亚像素渲染的差异?以及如何匹配。

顶部:iframe

底部:没有 iframe

我之所以问,是因为 iframe 中的某些字体看起来有些模糊。没有在 iframe 上应用任何变换。

【问题讨论】:

    标签: css google-chrome


    【解决方案1】:

    发现问题。事实证明,当您不为<body> 设置背景颜色时,会关闭子采样并激活常规抗锯齿(看起来不太好)。

    您只需body{ background: white; } 即可始终激活二次采样。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-04
      • 2016-06-06
      • 2021-10-04
      • 1970-01-01
      • 1970-01-01
      • 2018-03-02
      相关资源
      最近更新 更多