Force the correct font-size in Blackberry for rend

2019-06-03 14:25发布

I'm working on an html email that needs to render well on the Blackberry OS. The formatting of the text keeps getting blown up in Blackberry, see screenshots.

Blackberry ------------ Correct ------------

Blackberry Screenshot Correct Screenshot

Here is my current code -

<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="background-color:#000000 !important;padding:0;" bgcolor="#000000">
 <tr>
  <td style="color:#ffffff;font-size:12px;background-color:#000000;" bgcolor="#000000" valign="top">
    <span style="font-weight:bold;font-size:22px;mso-line-height-rule:exactly; line-height:24px;">
       Aliquam Commodo Velit vel Ipsum
    </span>
    <span style="mso-line-height-rule:exactly; line-height:13px;">
       <br>
    </span>
    Duis consectetur velit vel ipsum interdum anella onsequat lacus mattis.        
  </td>
 </tr>
</table>

Any thoughts would be greatly appreciated. This is wracking my brain. Thanks!

3条回答
等我变得足够好
2楼-- · 2019-06-03 14:30

It is obvious that the font-size:22px is overriding the font-size:12px given in td. What you can do is that instead of span divide your td into two td's and let them have the different font-sizes' html emails get the font from the td and not span tags.

查看更多
Ridiculous、
3楼-- · 2019-06-03 14:39

try adding min-width='600px' to the table, as some devices dont like widths in % (eg. Androids). Also, note the font-size=12px is applied to both the <span> as its applied to the <td>.

查看更多
小情绪 Triste *
4楼-- · 2019-06-03 14:47

this did it for me:

@media (max-width: 600px) {
      * { -webkit-text-size-adjust:none; }
}
查看更多
登录 后发表回答