Fixing Font Resizing in Chrome on Android
Users have observed that Chrome on Android tends to arbitrarily increase the font size of paragraphs that exceed a certain length. This behavior can disrupt the visual appearance and functionality of websites. To resolve this issue, you can implement the following workaround:
Solution:
Add the following CSS rule to the element (or its parent) that you want to prevent font resizing for:
max-height: 999999px;
By setting the maximum height to an extremely large value, you effectively disable the automatic font resizing mechanism for that element. This ensures that the text size remains consistent, regardless of the paragraph length.
The above is the detailed content of How to Stop Chrome on Android from Randomly Increasing Font Size?. For more information, please follow other related articles on the PHP Chinese website!