所以我沒有在頁腳之前的部分設置邊距,但不知何故它是分開的,我不能找出原因。任何想法?謝謝!Footer與其他內容分開
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;
}
你能告訴我們一個例子嗎? – 2013-03-27 00:06:18