iPhone 浏览器中的 HTML 字体比桌面浏览器中的 HTML 字体更大
有人知道为什么 iPhone 会以更大的字体显示黄色突出显示的文本吗? http://ucode.s3.amazonaws.com/index.html
文本结束对于黄色突出显示的背景来说太大了。我尝试将
元素上的字体大小设置为 21px,并尝试将其设置为
em
s (1.3125em)。在桌面浏览器(包括 safari 和 chrome)上看起来不错,但在 iPhone 上则不然......
Anybody have any idea why iPhones are displaying the text highlighted in yellow with a larger font?
http://ucode.s3.amazonaws.com/index.html
The text ends up being too big for the yellow highlighting background. I've tried setting the font-size as 21px right on the <p>
element and I've tried setting it in em
s (1.3125em). Looks fine on desktop browsers (including safari and chrome), but not on the iPhone....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该尺寸通常适合我的 iPhone(与我的浏览器 Chrome 的外观大致相同)。我也发现了之前的文章,可能会有所帮助。
之前的文章 StackOverflow
The sizing fits on my iPhone normally (about the same as my browser's appearance, Chrome). I found this previous article as well which may help.
Prior article StackOverflow