简体   繁体   English

仅限 iPad - 使用 css 缩放属性时,文本未调整

[英]iPad Only - Text is not adjusting when using css zoom attribute

In iPad OS safari, when adding the zoom attribute to the body element the text is not adjusting, but staying the exact same size when the zoom is at 100%.在 iPad OS safari 中,将缩放属性添加到正文元素时,文本不会调整,但在缩放为 100% 时保持完全相同的大小。

This functionality used to work in previous iOS versions for iPad, and it currently works for iOS 13 on iphone and the latest version of mojave for mac.此功能用于以前的 iOS 版本的 iPad,它目前适用于 iPhone 上的 iOS 13 和最新版本的 mojave for mac。 Does anyone know if this is a bug or hidden setting on the iPad or experienced the same issue?有谁知道这是 iPad 上的错误或隐藏设置,还是遇到同样的问题?

LINK TO TEST SITE: http://alleetest.s3-website-us-east-1.amazonaws.com/测试站点链接: http://alleetest.s3-website-us-east-1.amazonaws.com/

I have the same problem on iPad devices.我在 iPad 设备上遇到了同样的问题。 I "fixed" it temporarily by setting css property zoom: 0.9999;我通过设置 css 属性缩放来临时“修复”它:0.9999; on all child elements containing texts directly.在所有直接包含文本的子元素上。 Then the inherit zoom apply correctly or at least more precise than without it.然后继承缩放正确应用或至少比没有它更精确。 I didn't figure out anything better.我没有想出更好的办法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM