在 BlueHost 上托管并在 Chrome 中查看时,传单地图是模糊的

Leaflet map is blurry when hosted on BlueHost and viewed in Chrome

我正在制作传单 js 地图。当我在任何浏览器中本地查看它时,它看起来很棒。但是,当我将它上传到 BlueHost 并在 Chrome 中查看时,它变得有些模糊。在 Safari 中没问题。

此问题与此 GitHub 讨论描述的相同 - https://github.com/Leaflet/Leaflet/issues/3297。我无法找到 leaflet 0.7.2,也无法使用 CSS calc 成功强制进行值舍入。在上面的 link 中,建议将这两种操作作为此问题的潜在解决方案。

有谁知道解决这个问题的方法吗?我无法提供屏幕截图,因为我没有 10 个声誉。但是你可以在上面提到的 GitHub 讨论中看到我的 post 中的屏幕截图。

谢谢!

这是一个问题"in Chrome that fractional pixel values in size or position could lead to blurry text and some other glitches when applying CSS transforms."

详情请看这里:

https://github.com/Leaflet/Leaflet/issues/3297#issuecomment-100318390

此问题已得到修复,可能由 Chrome 更改。