gpt4 book ai didi

html - 页脚与其他内容分开

转载 作者:行者123 更新时间:2023-11-28 13:09:37 24 4
gpt4 key购买 nike

所以我没有在页脚之前的部分设置边距,但不知何故它是分开的,我似乎无法找出原因。任何想法?谢谢!

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;
}

最佳答案

在做任何样式之前尝试应用 CSS Reset:http://meyerweb.com/eric/tools/css/reset/

关于html - 页脚与其他内容分开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15649713/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com