gpt4 book ai didi

javascript - 无法更新自定义字体

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

I am working on a website for which i used custom fonts but i am not able use it in my website. Am i using it correctly?

.pattern{
background:rgba(0,0,0,.5) url(../images/pattern.png);
padding-top:100px;
font: AmaticSC-Bold;
font-family: AmaticSC;
}

最佳答案

在 html 中,有一组固定的字体系列,您可以使用它们,而无需添加必要的文件并将它们导入到样式表中。我不确定 AmaticSC-Bold 是字体的名称还是您正在尝试将其加粗。如果您想将其加粗,请使用 font-weight:bold 标签。如果您想尝试更多字体:https://www.fontsquirrel.com/

关于javascript - 无法更新自定义字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37459532/

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