HTML CSS - Font size oversized when shown on windows phone

时光怂恿深爱的人放手 提交于 2020-01-14 10:43:01

问题


I'm actually creating a newsletter. When i open the email into outlook, outlook web access, the layout is exactly the same as the one i built. Yet when I open the same email in my windows phone 8 font size is not respected and the email has no longer the same layout.

Do you have any kind of suggestion ? I have this css instruction in my tag. (-ms-text-size-adjust: none;)

body {
            background-color: #f9fbf4;
            margin: 0;
            padding: 0;
            -ms-text-size-adjust: none;
        }

I also put this kind of css in the style span but it doesnt work

<span style='font-size: 8.5pt; font-family: Georgia,"sans-serif"; color: white; font-size-adjust: none;'>Hello</span>

回答1:


This might have something to do with the viewport size on the device. You can try setting the initial scale to see if that resolves the issue.

<meta name="viewport" content="width=device-width; initial-scale=1.0;>


来源:https://stackoverflow.com/questions/16186829/html-css-font-size-oversized-when-shown-on-windows-phone

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