【发布时间】:2021-10-24 16:06:57
【问题描述】:
我为时事通讯使用自定义字体。我已导入“DINPro-Regular”字体,该字体可在 chrome 网络浏览器中使用,但在 Outlook 或 gmail 时事通讯中不起作用。我尝试了“Roboto”,它出现在 Outlook 和 gmail 中。有人可以指出可能导致此问题的原因吗?
任何帮助将不胜感激。
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@font-face {
font-family: "DINPro-Regular";
src: url("https://db.onlinewebfonts.com/t/c9c60c88cb732119e5a9457f2d9cdc53.eot"); /* IE9*/
src: url("https://db.onlinewebfonts.com/t/c9c60c88cb732119e5a9457f2d9cdc53.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
url("https://db.onlinewebfonts.com/t/c9c60c88cb732119e5a9457f2d9cdc53.woff2") format("woff2"), /* chrome firefox */
url("https://db.onlinewebfonts.com/t/c9c60c88cb732119e5a9457f2d9cdc53.woff") format("woff"), /* chrome firefox */
url("https://db.onlinewebfonts.com/t/c9c60c88cb732119e5a9457f2d9cdc53.ttf") format("truetype"), /* chrome firefox opera Safari, Android, iOS 4.2+*/
url("https://db.onlinewebfonts.com/t/c9c60c88cb732119e5a9457f2d9cdc53.svg#DINPro-Regular") format("svg"); /* iOS 4.1- */
}
body { font-family: 'DINPro-Regular', 'Trebuchet MS'; }
a {
text-decoration: none;
}
</style>
【问题讨论】:
标签: html css webfonts newsletter