旋转时防止iPhone缩放 [英] Preventing iPhone scaling when rotated
本文介绍了旋转时防止iPhone缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我将iPhone旋转到横向模式时,iPhone会自动阻止文字大小。
When I rotate my iPhone into landscape mode, the iPhone automatically bumps the text size up.
防止这种情况的最佳方法是什么?我想轮换给访问者更多的文字阅读,而不是更大的字体。是JavaScript 喜欢这个唯一的出路?
What is the best way to prevent this? I'd like rotation to give the visitor more text to read, not a larger font. Is JavaScript like this the only way to go?
推荐答案
你可以使用这个CSS属性
You could use this CSS property
-webkit-text-size-adjust: none;
这篇关于旋转时防止iPhone缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文