如何删除 body 和页脚之间的白色 space 间隙?
How to remove white space gap between body and footer?
正如您在标题中所见,我正在创建的网站 body 内容和页脚之间有白色 space!我正在使用 wordpress 并通过编辑器进行编码,我试图从站点 body 和页脚中删除填充和边距。我还尝试将其设置为相对并将其移动到另一个,但是当我移动它们时,间隙只是移动位置。当我将相对位置设置为页脚并添加 -top 以将其连接到 body 时,间隙在页面下方。请帮忙!提前谢谢你:D
主页内容和页脚的[=23=]代码如下:
/* This is inner site (body) content style */
.site-inner {
background-color: #fff;
clear: both;
padding-top: 40px;
}
.minimum-landing .site-inner {
margin: 40px auto;
padding: 60px 60px 20px;
width: 800px;
}
/* This is footer CSS code */
.site-footer {
background-color: #231F20;
letter-spacing: 1px;
padding: 60px 0;
text-align: center;
margin:0;
}
.site-footer a,
.site-footer p {
color: #999;
}
.site-footer a:hover {
color: #fff;
}
.site-footer a {
border: none;
font-weight: 300;
}
.site-footer p {
font-family: 'Roboto', sans-serif;
font-weight: 300;
font-size: 14px;
margin-bottom: 0;
}
删除 .entry 中的保证金
.entry {
margin-bottom: 40px;
}
我刚刚解决了它是 body 的边距,所以我从 Opera Inspect 元素复制了 CSS 路径,复制到 wordpress 中的 CSS 编辑器(CLASS) 并设置 margin:0;
谢谢大家的帮助!
正如您在标题中所见,我正在创建的网站 body 内容和页脚之间有白色 space!我正在使用 wordpress 并通过编辑器进行编码,我试图从站点 body 和页脚中删除填充和边距。我还尝试将其设置为相对并将其移动到另一个,但是当我移动它们时,间隙只是移动位置。当我将相对位置设置为页脚并添加 -top 以将其连接到 body 时,间隙在页面下方。请帮忙!提前谢谢你:D
主页内容和页脚的[=23=]代码如下:
/* This is inner site (body) content style */
.site-inner {
background-color: #fff;
clear: both;
padding-top: 40px;
}
.minimum-landing .site-inner {
margin: 40px auto;
padding: 60px 60px 20px;
width: 800px;
}
/* This is footer CSS code */
.site-footer {
background-color: #231F20;
letter-spacing: 1px;
padding: 60px 0;
text-align: center;
margin:0;
}
.site-footer a,
.site-footer p {
color: #999;
}
.site-footer a:hover {
color: #fff;
}
.site-footer a {
border: none;
font-weight: 300;
}
.site-footer p {
font-family: 'Roboto', sans-serif;
font-weight: 300;
font-size: 14px;
margin-bottom: 0;
}
删除 .entry 中的保证金
.entry {
margin-bottom: 40px;
}
我刚刚解决了它是 body 的边距,所以我从 Opera Inspect 元素复制了 CSS 路径,复制到 wordpress 中的 CSS 编辑器(CLASS) 并设置 margin:0;
谢谢大家的帮助!