简体   繁体   English

如何使用 CSS 更改 Wordpress 主题中的默认段落字体

[英]How to change the default paragraph Font in Wordpress theme with CSS

I use the free theme "Benzer"in my wordpress blog.我在我的 wordpress 博客中使用免费主题“Benzer”。 The parent theme is "Specia".父主题是“Specia”。

I'am trying to change the default paragraph font and make it better by placing this CSS code in the Special style.css file directly through Wordpress, but nothing changes...What's wrong please?我正在尝试更改默认段落字体并通过直接通过 Wordpress 将此 CSS 代码放置在 Special style.css 文件中来使其更好,但没有任何变化......请问有什么问题?

p {

font-family:Arial;
font-size:14

} }

!Important are considerated a bad practice. !重要的是被认为是一种不好的做法。 Try to use the console to figre otu wich style is overwriting yours.尝试使用控制台来确定 otu 风格正在覆盖您的风格。 also, you miss the units in font size,此外,您错过了字体大小的单位,

p {
font-family:Arial;
font-size:14px
}

Should work better.应该工作得更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM