Safari 在放大/缩小时会弄乱设计

发布于 2024-12-14 03:43:27 字数 303 浏览 2 评论 0原文

我已经对设计进行了切片(请参阅第一个 psd 此处 )对于我的实践来说,效果很好。但当我在 Safari 中放大时,整个设计就变得混乱了。我有固定大小的中心矩形,其中包含网站的所有元素,这些元素在放大并且文本变大后保持不变。 (我认为最初的设计规定了矩形具有固定的尺寸!)

问题是,如何在 Safari 中使文本放大而不弄乱设计,如果您遇到此类问题,它有多专业?这个问题一定要解决吗?

谢谢!

I have sliced a design (see the first psd here) for my practice, and it works fine. But when I zoom-in in Safari the whole design gets messed up. I have fixed sizes of central rectangle which contains all elements of the site which remains the same after zooming in and text becomes bigger. (I think the original design dictates the rectangle to have fixed dimensions!)

The question is this, how can I make the text zoom in in Safari without messing the design, and how professional it is if you have this type of problem? Should this problem be necessarily solved?

Thanks!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吹梦到西洲 2024-12-21 03:43:27

我应该使用 em 单位,因为当字体改变时,em 单位也会改变。 Em 与字体大小相关,因此解决了问题。

I should use em units as em unit changes when the font is changed. Em is associated with the font size so it solves the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文