WordPress主页上的双滚动条

时间:2017-12-09 作者:Nicola Pigozzo

我有一个WordPress网站,我用自定义CSS插件更改了一些CSS,以调整页脚的位置。此处我的CSS更改:

.page-id-736 .main-title {
  visibility: visible;
  display: none;
}

.page-id-1981 .main-title {
  visibility: visible;
  display: none;
}

.page-id-2005 .main-title {
  visibility: visible;
  display: none;
}

.page-id-1989 .main-title {
  visibility: visible;
  display: none;
}

.page-id-1992 .main-title {
  visibility: visible;
  display: none;
}

.page-id-1997 .main-title {
  visibility: visible;
  display: none;
}

.page-id-3318 .main-title {
  visibility: visible;
  display: none;
}

.page-id-3339 .main-title {
  visibility: visible;
  display: none;
}

.page-id-3345 .main-title {
  visibility: visible;
  display: none;
}

.page-id-3348 .main-title {
  visibility: visible;
  display: none;
}

.page-id-3351 .main-title {
  visibility: visible;
  display: none;
}

.page-id-3354 .main-title {
  visibility: visible;
  display: none;
}

.page-id-736 .main-title + .breadcrumbs {
  display: none;
}

.page-id-1981 .main-title + .breadcrumbs {
  display: none;
}

.page-id-2005 .main-title + .breadcrumbs {
  display: none;
}

.page-id-1989 .main-title + .breadcrumbs {
  display: none;
}

.page-id-1992 .main-title + .breadcrumbs {
  display: none;
}

.page-id-1997 .main-title + .breadcrumbs {
  display: none;
}

.page-id-3318 .main-title + .breadcrumbs {
  display: none;
}

.page-id-3339 .main-title + .breadcrumbs {
  display: none;
}

.page-id-3345 .main-title + .breadcrumbs {
  display: none;
}

.page-id-3348 .main-title + .breadcrumbs {
  display: none;
}

.page-id-3351 .main-title + .breadcrumbs {
  display: none;
}

.page-id-3354 .main-title + .breadcrumbs {
  display: none;
}

.hentry__content .page-box p {
  display: none;
}

.comment {
  display: none;
}

.col-xs-12.form-group {
  display: none;
}

#comments.comments-post-1 {
  display: none;
}

.page-id-2362 .footer {
  margin: -45px;
}

.page-id-2362 .row {
  text-align: center;
}
这就是我的主页现在的样子:enter image description here

谁能帮帮我吗?谢谢Nico

2 个回复
最合适的回答,由SO网友:Ideatron 整理而成

问题是你的footer has a -45px margin 在上面。我想你是想垂直限制这一点。

应该是这样的margin-top: -45px on your footer.

然后可以删除overflow-x: hidden; from your body .boxed-container{}这就是为什么会出现第二个滚动条(一旦定义了滚动行为,这就是你的问题)只是删除正文上的overflow-x。装箱的容器可以解决您的问题,但页脚有-45px的边距才是您所有问题的根本原因。

SO网友:Arturo Gallegos

它如何帮助解决问题代码的威力?如果您无法共享站点的URL(可以理解),请至少共享足够的代码,我们可以使用这些代码重新创建情况/问题,并能够做出相应的响应。

结束

相关推荐