是否可以在Gmail中使用Google网页字体 [英] Is it possible to use google web fonts in gmail
本文介绍了是否可以在Gmail中使用Google网页字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< link href ='我想使用谷歌网页字体Over the Rainbow 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);
})() ; < /脚本>
解决方案
我希望答案是不同的,但我不相信目前是可能的。
我不相信Gmail会允许您在邮件正文中插入链接元素(尽管有些电子邮件客户端将会)。
Gmail不允许您在邮件中运行JavaScript。 >
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 = ('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.
这篇关于是否可以在Gmail中使用Google网页字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文