Outlook 2007 / 2013 not rendering CSS font-family declarations

前端 未结 2 760
有刺的猬
有刺的猬 2020-12-28 23:44

I\'m testing an email design with Litmus and for the life of me I cannot get my fonts to be properly set in Outlook 2007 / 2010 / 2013. Every single HTML / CSS trick / hack

2条回答
  •  死守一世寂寞
    2020-12-29 00:32

    I traced the issue to my STYLE declaration, which uses the @font-face to pull in a custom font file for supporting clients (i.e. Apple). Apparently, something about this use of the @font-face declaration breaks in Outlook 2007 - 20013.

    
    

    I needed to get MS Outlook to ignore this STYLE tag, so I wrapped the entire block with the [if !mso] tag:

    
    
    
    

    Wow, that was driving me crazy.

提交回复
热议问题