是否可以在Gmail中使用谷歌网络字体

Nit*_*ant 10 email gmail google-webfonts

我想在gmail中编写邮件时使用谷歌网络字体"Over the Rainbow"

 <link href='http://fonts.googleapis.com/css?family=Over+the+Rainbow&v2' rel='stylesheet' type='text/css'>
Run Code Online (Sandbox Code Playgroud)

可能吗?

<script type="text/javascript">
  WebFontConfig = {
    google: { families: [ 'Over+the+Rainbow' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })(); </script>
Run Code Online (Sandbox Code Playgroud)

Dav*_*ith 14

我希望答案不同,但我认为目前不可能.

我不相信Gmail会允许您在邮件正文中插入一个链接元素(尽管有些电子邮件客户端会这样).

Gmail不允许您在邮件中运行JavaScript.

  • 具有讽刺意味的是,Google Webfonts几乎在每个邮件客户端都可以工作,除了Google的..... (3认同)