Android 上的 Chrome 调整字体大小 [英] Chrome on Android resizes font

查看:48
本文介绍了Android 上的 Chrome 调整字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然,一旦文本段落达到一定长度,Android 上的谷歌浏览器就会决定调整文本大小并使其变大(引起各种乐趣).现在我有一个网站,其中大约一半的 p 标签遵循我设置的大小,另一半则随心所欲地更改 - 显然取决于段落的长度.

Apparently once paragraph of text reaches a certain length, Google Chrome on Android decides to resize the text and make it larger (causing all kinds of fun). Now I have a website where about half of the p-tags follow the size I've set and the other half change as they please - apparently depending on the length of the paragraph.

我到底该如何解决这个问题?

How on earth do I fix this?

推荐答案

max-height: 999999px; 添加到要防止字体增强的元素或其父元素.

Add max-height: 999999px; to the element you want to prevent font boosting on, or its parent.

这篇关于Android 上的 Chrome 调整字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆