gpt4 book ai didi

css - 编写代码将 Google Font API 导入 MailChimp?

转载 作者:行者123 更新时间:2023-11-28 02:02:10 25 4
gpt4 key购买 nike

我正在尝试将此 API 代码插入 MailChimp:<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" rel="stylesheet">

我希望文本的亮度为 300,但我完全迷失了。谁能帮我编写代码?

<div style="text-align: left;"><span style="font-family:open sans,helvetica neue,helvetica,arial,sans-serif">🇪🇹<span style="font-size:18px"><span style="color:#000000"><strong>Ethiopia: </strong><br />
Prime Minister resigns abruptly after years of violent anti-government protests and a failed nationwide state of emergency. The country&rsquo;s future is uncertain.&nbsp;</span></span></span><br />
&nbsp;</div>

<div style="text-align: right;"><span style="font-family:open sans,helvetica neue,helvetica,arial,sans-serif"><span style="font-size:14px">📍 <span style="color:#000000">John Smith, 35, Kosovo</span></span></span></div>

最佳答案

如果您添加了 <link rel=stylesheet..>正确地在您的 HEAD 部分。更改 font-family:open sans,helvetica neue,helvetica,arial,sans-seriffont-family: 'Open Sans', sans-serif;并添加 font-weight: 300;

<div style="text-align: left;"><span style="font-family: 'Open Sans', sans-serif; font-weight: 300;">🇪🇹<span style="font-sizee:18px"><span style="color:#000000"><strong>Ethiopia: </strong><br />
Prime Minister resigns abruptly after years of violent anti-government protests and a failed nationwide state of emergency. The country&rsquo;s future is uncertain.&nbsp;</span></span></span><br />
&nbsp;</div>

<div style="text-align: right;"><span style="font-family: 'Open Sans', sans-serif; font-weight: 300;"><span style="font-size:14px">📍 <span style="color:#000000">John Smith, 35, Kosovo</span></span></span></div>

关于css - 编写代码将 Google Font API 导入 MailChimp?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49247962/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com