【发布时间】:2018-12-29 13:26:27
【问题描述】:
我正在尝试通过 Appearance>Customize 中的 Additional CSS 部分以我想要的方式修改我的 WordPress 主题。
我希望 entry-content 类中的所有h1 标签都像这样:
所以我使用了这个代码:
.entry-content h1 {
background-color: #cfbc00;
display: inline;
background-color:#000000;
}
我希望将整个块着色为#cfbc00,并将文本本身的背景设置为黑色。但是浏览器不会同时将这些应用到我的标签,它只应用其中一个属性。我该怎么办?
【问题讨论】:
-
html代码在哪里?
-
@thebrownkid html 代码是我作为 wp 帖子编写的文本。它的所有动态
标签: css wordpress wordpress-theming