是否可以在 gmail 中使用谷歌网络字体 [英] Is it possible to use google web fonts in gmail
本文介绍了是否可以在 gmail 中使用谷歌网络字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 gmail 中撰写邮件时,我想使用 google 网络字体Over the Rainbow"
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'>
有可能吗?
<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>
推荐答案
我希望答案不一样,但我认为目前不可能.
I wish the answer were different, but I do not believe it is currently possible.
我不相信 Gmail 会允许您在邮件正文中插入链接元素(尽管一些电子邮件客户端会).
I don't believe Gmail will allow you to insert a link element into the message body (although some email clients will).
Gmail 不允许您在邮件中运行 JavaScript.
Gmail will not allow you to run JavaScript within the message.
这篇关于是否可以在 gmail 中使用谷歌网络字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文