【问题标题】:How to decrease footer height in wordpress using css?如何使用css减少wordpress中的页脚高度?
【发布时间】:2019-08-07 02:00:40
【问题描述】:

我想使用 css 降低 wordpress 页面的页脚高度。我试过了,但结果不是我想要的。页脚在其下方添加了少许空间。

我尝试过使用变换:缩放、底部填充(这个不起作用)、高度等。

#wrap_footer{
    position : relative;
    height : 60px;
}

我只想降低页脚高度,而不是在其下方添加任何空间。

this is the original page

this is a photo that shows the footer results that I have tried

谢谢

【问题讨论】:

  • 我去了你的页面并使用了这个#footer-bottom .pad.group{height: 60px; padding: 0 30px;display: flex;justify-content: center;align-items: center;}
  • 你怎么能得到它?我在inspector中没有找到。
  • 顺便说一句,谢谢你帮助我

标签: css wordpress wordpress-theming custom-wordpress-pages


【解决方案1】:

您可以在以下位置使用这种 css 样式:

position: fixed;
bottom: 0;

希望这会有所帮助。

【讨论】:

  • 我认为这将使我的页脚跟随我的页面上下滚动。顺便说一句,问题解决了..感谢您的评论。
猜你喜欢
  • 1970-01-01
  • 2011-06-03
  • 1970-01-01
  • 2012-08-08
  • 2013-11-01
  • 2018-05-03
  • 1970-01-01
  • 1970-01-01
  • 2011-01-22
相关资源
最近更新 更多