Can Outlook 2010 use a web font in an html email?

前端 未结 5 1642
無奈伤痛
無奈伤痛 2020-12-01 15:01

I\'ve tried several things, including wrapping the css. Any ideas on how to get an html email Outlook 2010 to use a webfont and not default to a preinstalled font?

H

5条回答
  •  粉色の甜心
    2020-12-01 15:47

    I like Josh Harrison's answer. But do you have to repeat this on 'mobile' breakpoints? i.e. have

    @media screen {  
        h1 { font-family: Merriweather,Georgia,serif !important; }
        h2 { font-family: Merriweather,arial,sans-serif !important; }
        p { font-family: Merriweather,arial,sans-serif !important; }
    }
    
    @media screen and (max-width: 660px){
        #main_table { width:92% !important; }
        h1 { font-family: Merriweather,Georgia,serif !important; }
        h2 { font-family: Merriweather,arial,sans-serif !important; }
        p { font-family: Merriweather,arial,sans-serif !important; }
    }
    

提交回复
热议问题