开发者

Is it possible to use google web fonts in gmail

开发者 https://www.devze.com 2023-03-16 06:23 出处:网络
I want to use google web font \"Over the Rainbow\" when composing mail in gmail <link href=\'http://fonts.googleapis.com/css?family=Over+the+Rainbow&v2\' rel=\'stylesheet\' type=\'text/css\'&

I want to use google web font "Over the Rainbow" when composing mail in gmail

 <link href='http://fonts.googleapis.com/css?family=Over+the+Rainbow&v2' rel='stylesheet' type='text/css'>

Is it possible?

<script type="text/javascript">
  WebFontConfig = {
    google: { families: [ 'Over+the+Rainbow' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src开发者_C百科 = ('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>


I wish the answer were different, but I do not believe it is currently possible.

I don't believe Gmail will allow you to insert a link element into the message body (although some email clients will).

Gmail will not allow you to run JavaScript within the message.

0

精彩评论

暂无评论...
验证码 换一张
取 消