【发布时间】:2018-10-01 04:27:06
【问题描述】:
我正在开发一个带有angular-material 的移动网站,它在页面上使用固定的页脚。页脚始终存在并固定在底部。这一切都很好。但是,当我滚动页面并且浏览器地址栏隐藏时,正文高度也会发生变化。结果是固定页脚也向上移动。
这是页脚的CSS如下:
.mobile-ui .footer-mobile{
position: fixed;
bottom: 0;
width: 100%;
z-index: 3;
left: 0;
right: 0;
}
页脚是否有可能保持固定?
我不希望强制地址栏隐藏或保持固定。
【问题讨论】:
标签: android css google-chrome css-position sticky-footer