作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个字体系列为 AdellePE Bold 的文本,我想知道如何在我们的 CSS 中使用它?
.blog-text
{
position: absolute;
top: 200px;
font-weight: bold;
left: 100px;
color: rgb(254, 91, 31);
font-family: AdellePE Bold ;
font-size: 30px;
letter-spacing: .24em;
}
我正在使用上面的代码,但不幸的是它与文本的字体不匹配。
最佳答案
如下声明字体
@font-face {
font-family: AdellePE Bold;
src: url(fonts/[FONT NAME].woff);
}
将上面的 [FONT NAME] 替换为您的字体文件的字体名称。您的字体可能需要单引号才能正常工作,因此请务必检查一下。
.blog-text
{
position: absolute;
top: 200px;
font-weight: bold;
left: 100px;
color: rgb(254, 91, 31);
font-family: AdellePE Bold ;
font-size: 30px;
letter-spacing: .24em;
}
让我知道它是否有效。
关于css - css 中的 AdellePE 粗体字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44403162/
我有一个字体系列为 AdellePE Bold 的文本,我想知道如何在我们的 CSS 中使用它? .blog-text { position: absolute; top: 200px
我是一名优秀的程序员,十分优秀!