gpt4 book ai didi

CSS忽略字体

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

我正在用 codeIgniter 建立一个网站,但我在使用 CSS 时遇到了一些问题

下面的代码为我提供了衬线字体 - 我知道样式表已正确链接,因为文本适合所有其他参数,并且在我取消链接时发生变化。

span.navbig {
font-size: 36pt;
font-family: Gill Sans / Gill Sans MT, sans-serif;
letter-spacing: -1.5pt;
text-decoration: none;
}

我在这里没有看到什么?

谢谢

最佳答案

将字体系列声明中的字体类型分开,像这样:

font-family: "Gill Sans", "Gill Sans MT", sans-serif;

Here's一些简单的引用:

Note: Separate each value with a comma.

Note: If a font name contains white-space, it must be quoted. Single quotes must be used when using the "style" attribute in HTML.

here's W3C 推荐:

Font family names must either be given quoted as strings, or unquoted as a sequence of one or more identifiers. This means most punctuation characters and digits at the start of each token must be escaped in unquoted font family names.

关于CSS忽略字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7156582/

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