我在mi页面的末尾有这个navbar-fixed-bottom
。
<nav class="navbar navbar-default navbar-fixed-bottom" role="navigation">
<div class="container">
<img src="images/banner2.jpg" class="img-responsive">
</div>
</div>
我为HTML添加了页边距底部
html { margin-bottom: 100px }
。。为了避免页脚覆盖我的内容。这适用于桌面分辨率,但分辨率较小,不适用。这是因为页脚的img
是响应性的,所以高度会减小,而不是margin-bottom
。
问题是如何根据导航栏的高度使html的margin-bottom
“响应式”。
谢谢。
https://stackoverflow.com/questions/44530830
复制相似问题