缩放分辨率下的丁边框厚度问题:'border-width: *px'不能完全发挥作用

发布于 2025-01-19 19:01:16 字数 1496 浏览 2 评论 0原文

这是关于Chrome中众所周知的问题的参考,即在缩放分辨率上某些表边框线看起来太厚(例如125%),即使它们都应该相同,1px thin。上面有很多线程: 1 2 3 等。只有chrome才有这个问题,其他浏览器可以

使用border-border-width: 0.5px-1.5px找到一个“甜点”,桌子边界变得均匀。

但是对我来说,我有2个具有4行的表,当我以125%的分辨率更改<​​code>边界宽度时,问题只会从一个地方跳到另一个地方。以下是我正在经历的。我只是找不到可以解决问题的0到2之间的小数值。

Windows Zoom设置:

另一个注释。更改1px实心黑色 to 薄固体黑色也不起作用,与书写的此处 2018年。

This is in reference to the well-known issue in Chrome where some table border lines appear too thick on a zoomed resolution (e.g. 125%) even though they should all be the same, 1px thin. There are many threads on this: 1, 2, 3 etc. Only Chrome has this issue, other browsers are OK

The common workaround is to play with border-width: 0.5px-1.5px to find a "sweet spot" where the table borders become uniform.

But for me, I have 2 tables with 4 rows, and when I change border-width on a 125% resolution, the problem just jumps from one place to another. Below is what I'm experiencing. I just can't find any decimal value between 0 and 2 that would resolve the problem.

enter image description here
enter image description here
enter image description here

Windows Zoom Setting:
enter image description here

One other note. Changing 1px solid black to thin solid black doesn't work either, contrary to what was written here in 2018.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文