gpt4 book ai didi

html - 页脚隐藏内容

转载 作者:行者123 更新时间:2023-11-28 04:34:00 25 4
gpt4 key购买 nike

我有以下页脚,似乎工作正常,但存在问题,当我向下滚动页面时,页脚覆盖了内容。有人有什么建议吗?提前致谢。

HTML:

<div class="footer" id="footer">My footer</div>

CSS:

#footer {

border: 1px groove #aaaaaa;
background: #333333;
color: white;
padding: 0;
text-align: center;
vertical-align: middle;
line-height: normal;
margin: 0;
position: fixed;
bottom: 0px;
width: 100%;
height:40px;

}

最佳答案

试试正文 padding-bottom:40px;

body{
padding-bottom:40px;
}

关于html - 页脚隐藏内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41587600/

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