所以我没有在页脚之前的部分设置边距,但不知何故它是分开的,我似乎无法找出原因。任何想法?谢谢!
html:
<section>
<div class="content"></div>
</section>
<footer>
<div id="footer"></div>
</footer>
和CSS:
.content{
background-image: linear-gradient(bottom, rgb(135,127,127) 0%, rgb(37,37,35) 69%);
background-image: -o-linear-gradient(bottom, rgb(135,127,127) 0%, rgb(37,37,35) 69%);
background-image: -moz-linear-gradient(bottom, rgb(135,127,127) 0%, rgb(37,37,35) 69%);
background-image: -webkit-linear-gradient(bottom, rgb(135,127,127) 0%, rgb(37,37,35) 69%);
background-image: -ms-linear-gradient(bottom, rgb(135,127,127) 0%, rgb(37,37,35) 69%);
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0, rgb(135,127,127)),
color-stop(0.69, rgb(37,37,35))
);
#footer{
background:url(images/footer.png) left top no-repeat;
height:450px;
}