各种分辨率的分数值不同-CSS -Google Chrome

发布于 2025-02-08 21:38:22 字数 420 浏览 1 评论 0原文

我使用的是1920 x 1080分辨率,分辨率为100%,而我的Div渲染的高度和宽度如下, 您的参考图像

高度 15.625 和宽度将为 16.469

在采用新机器3840 x 2160分辨率(其中200%)(与1920 x 1080分辨率(100%)相同)时,但这里的高度可能为 15.631 ,而宽度将为 16.477

Chrome是否根据分辨率决定分数部分?如果是这样,在我的情况下,两者都是相同的决议。 Firefox没有

提前感谢

I'm using 1920 X 1080 resolution with 100% and the height and width of my div renders as below,
Image for your reference

height 15.625 and width will be 16.469

While am taking a new machine 3840 X 2160 resolution with 200% (which some what equivalent with 1920 X 1080 resolution with 100%) but here the height might be 15.631 and width will be 16.477

Whether chrome decides the fractional part based on resolution ? if so both are same resolutions at my case.
No issues with Firefox

Thanks in advance

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

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

发布评论

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