Preventing iPhone scaling when rotated

孤人 提交于 2019-12-06 00:12:10

问题


When I rotate my iPhone into landscape mode, the iPhone automatically bumps the text size up.

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?


回答1:


You could use this CSS property

-webkit-text-size-adjust: none;


来源:https://stackoverflow.com/questions/912681/preventing-iphone-scaling-when-rotated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!