gpt4 book ai didi

css - 粘性页脚中的垂直滚动条

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

我是 CSS 编码的新手(这很明显)- 谁能帮我把 page site is here 上的两个滚动条去掉.

CSS 在一个名为 http://www.signature-online.net/chamberofcommercemainstyle2.css 的文件中如果有人能帮助我避免再次扯掉我的头发,我将不胜感激!

页脚没有固定,并且有两个垂直滚动条,我做了什么?

最佳答案

像下面这样更改 css 中的 main 类:

#main {
overflow: hidden;
}

您有 overflow: auto; 而我们不希望这样,同时删除 padding-bottom: 186px; 并更改您的 footer类,只需删除 margin-top: -186px; 添加 bottom: 0 它应该如下所示:

#footer {
bottom: 0;
position: relative;
height: 186px;
clear: both;
background-image: url(common/images/footer_mountains.png);
background-repeat: repeat-x;
background-position: center top;
z-index: 600;
}

希望对您有所帮助!

关于css - 粘性页脚中的垂直滚动条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11641271/

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