【发布时间】:2021-07-22 19:37:48
【问题描述】:
一位朋友创建了一个 Wordpress 网站,但该网站的标题存在定位问题。由于他对 Web 开发一无所知,我创建了两个样式声明来解决他的问题:
#site-title {
line-height: 1.1em;
}
#site-description {
margin-top: 5px;
}
他将这些行保存在 Wordpress 的自定义样式中。现在发生的情况是,这些行出现在标头标记内的源代码中:
<style id="wp-custom-css">
#site-title {
line-height: 1.1em;
}
#site-description {
margin-top: 5px;
} </style>
但浏览器在呈现网站时不会考虑这些行。 (我也无法在开发者控制台中找到这些声明。)为什么这不起作用?
【问题讨论】:
标签: html css wordpress wordpress-theming