【问题标题】:CSS styling of the footer goes wrong页脚的 CSS 样式出错
【发布时间】:2016-08-20 03:20:24
【问题描述】:

提前感谢您的帮助。

我正在使用 wordpress 主题(称为 Eventr)。在这个主题中,页脚的 id 为“footer”:

<footer id="footer">

css 样式表具有相应样式的匹配#footer 元素:

#footer {
color: #b0b0b0 !important;
background: #262626 !important;
padding-top: 70px !important;
padding-bottom: 70px !important;
}

然而,虽然它在他们的演示 (http://themeforest.net/item/eventr-one-page-event-wordpress-theme/full_screen_preview/12212783) 中似乎工作得很好,但在我的网站上,样式根本不起作用。看起来页面似乎完全忽略了#footer 样式元素:当我检查页面时,甚至不需要它: screenshot of the page inspection

这完全让我感到困惑。有什么想法吗?

干杯:) 卡米尔

PS:在 css 样式表中,我手动添加了 !important 以查看它是否会产生任何影响,但它不会产生任何影响。

【问题讨论】:

  • 可以加个codepen或者sn-p吗?
  • 你能提供实时网址吗?
  • 您是否在进行 CSS 更改时运行任何缓存插件?
  • 请提供您的 CSS 文件的链接。
  • 你如何包含你的css?建议你在functions.php中用wp_enqueue_style()函数来做

标签: css wordpress footer


【解决方案1】:

而不是#footer,只需使用页脚并编写你的css,我认为它会起作用

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-07-14
    • 2011-09-14
    • 2013-02-17
    • 2018-05-22
    • 1970-01-01
    • 2017-03-28
    • 1970-01-01
    • 2019-06-02
    相关资源
    最近更新 更多