gpt4 book ai didi

css - 全 Angular 页脚不会粘在底部

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

我没有设法将全宽页脚粘贴到网页底部。当页脚上方的主要内容低于一定高度时,页脚下方有一个空白区域。我尝试使用各种解决方案,例如以下 css 代码:

 html,body { margin:0; padding:0;min-height:100%;position:relative;}
.wrapper { min-height:100%; position:relative;_height:100% /* _height = for ie */ }
.page { padding-bottom:400px; height:100%; }
.footer { padding:0;margin:0 position:absolute; left:0; bottom:0; width:100%; height:400px; }

页脚仍然会粘在主要内容的底部而不是页面底部。我认为我的CSS没有任何问题。

示例:http://hertog-hengelsport.nl.testbyte.nl/checkout/cart/

我希望有人能指出我的解决方案!

非常感谢!

网址:http://hertog-hengelsport.nl.testbyte.nl平台:Magento 1.7.2

最佳答案

使用“位置:固定;”而不是绝对的页脚

关于css - 全 Angular 页脚不会粘在底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12819287/

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