阻止iPhone调整HTML电子邮件的问题 [英] Issue stopping iPhone resizing HTML e-mails
问题描述
我在尝试防止iPhone调整HTML电子邮件大小以适合屏幕时遇到问题。看来下面的代码放入部分没有效果。
I'm having an issue trying to prevent the iPhone from resizing HTML e-mails to fit the screen. It seems that code below when put into the section has no effect.
我的目标是停止字体重新调整大小。我试过其他变化使用-webkit-text-size-adjust:none;内联和其他方式,所有没有成功。
My goal is just to stop the font re-sizing. I've tried other variations using -webkit-text-size-adjust:none; inline and in other way, all without success.
将grealty喜欢任何建议或替代解决方案。
Would grealty appreciate any advice or an alternative solution.
@media屏幕和
(max-device-width:480px){
@media screen and (max-device-width: 480px){
/*fixes too big font in mobile Safari*/
html, body, form, fieldset, p, div, h1, h2, h3, h4, h5, h6 {
-webkit-text-size-adjust:none; } } </style>
推荐答案
是一个痛苦,当谈到调整大小的事情,特别是当你切换手机的方向。您是否尝试过添加具有视口设置的元标记?
The iPhone seems to be a pain when it comes to resizing things, especially when you switch the orientation of the phone. Have you tried adding the meta tag with viewport settings in it?
<meta name="viewport" content="width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
它阻止他们进行缩放,但我没有找到更好的方法来停止iPhone缩放方向更改。我不知道这是否会在这种情况下帮助,但只是一个建议尝试。
It does prevent them from zooming, but I haven't found any better way to stop the iPhone from zooming on orientation change. I'm not sure if this will help in this situation, but just a suggestion to try out.
这篇关于阻止iPhone调整HTML电子邮件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!