我是Wordpress和Web开发的新手。我想在wordpress中修改主题,但是有问题。我试图在编辑器中使用style.css覆盖字体家族,但似乎无济于事。我写了以下内容:
html, body {
font-family: Gafata;
}
它不会覆盖原始代码。我要解决这个问题的下一步可能是什么?非常感谢!
将其放在CSS的顶部。
@import url("http://fonts.googleapis.com/css?family=Gafata");
如果那时您还没有得到字体,请更新您的
html, body {
font-family: Gafata;
}
到
html, body {
font-family: Gafata!important;
}
您可以在html和body标签上使用类名。如果您不想使用!important。
喜欢
html.someClass, body.someOtherClass {
font-family: Gafata;
}
其他有用的信息https://developers.google.com/fonts/docs/getting_started
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句