gpt4 book ai didi

css - 我无法将自定义字体添加到我的网页

转载 作者:太空宇宙 更新时间:2023-11-04 02:16:44 25 4
gpt4 key购买 nike

我已将下面的代码添加到我的 CSS,但它仍然无法被 Brackets 识别并且不在我的页面上。

@fontface{
font-family: swedish-sans;
src:url(SwedenSans.otf);
font-weight: normal;
font-style: normal;
}

尽管我上面的 swedish-sans 代码在下面的代码中仍然无法识别。

.smart{

font-family: swedish-sans, sans-serif;
color:black;
text-align: center;
font-size:24px;
}

最佳答案

@font-face{ 
font-family: swedish-sans;
src:url("SwedenSans.otf");
font-weight: normal;
font-style: normal;
}

关于css - 我无法将自定义字体添加到我的网页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38794695/

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