简体   繁体   English

使用HTML Inline样式链接到Fontawesome

[英]Link to Fontawesome using HTML Inline styling for email

I am using iContact, a WYSIWYG email builder that allows for custom HTML blocks. 我正在使用iContact,它是一种所见即所得的电子邮件生成器,允许自定义HTML块。

The client wants a specific shade of grey for social media icons, and iContact uses pngs in only black/white and full color. 客户希望社交媒体图标使用特定的灰色阴影,并且iContact仅使用黑白和全彩色的png。 I can try to use fontawesome social media icons, but I can't access the tag to link to it. 我可以尝试使用fontawesome社交媒体图标,但是我无法访问该标签以链接到它。

The option that I tried to no avail was this: 我尝试无济于事的选择是:

<script> var lNode = document.createElement("link"); lNode.setAttribute("rel", "stylesheet"); lNode.setAttribute("href", "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"); document.getElementsByTagName("head")[0].appendChild(lNode) </script>

iContact deletes any tags, and I don't javascript works in emails anyway. iContact会删除所有标签,而且我的JavaScript也无法在电子邮件中正常工作。

Is there a way to link to a font using HTML inline styling, or should I just use black and white icons and tell them it's the only way? 有没有一种方法可以使用HTML内联样式链接到字体,还是应该只使用黑白图标并告诉它们这是唯一方法?

我只是使用一种变通办法,方法是使用Adobe Illustrator将超棒的字体图标转换为png。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM