gpt4 book ai didi

html - 在 bootstrap 中将 div 对齐到页面底部

转载 作者:搜寻专家 更新时间:2023-10-31 08:04:34 24 4
gpt4 key购买 nike

我尝试使用堆栈问题中的方法,但对我来说没有任何用处,尽管项目非常简单。

<div class="fluid-container">
<div id="app-row" class="row">
<div id="app" class="col-xs-5">
<div class="top-navbar">
Top
</div>
<div class="bottom-navbar">
Bottom
</div>
</div>
<div id="map-container" class="col-xs-7">
<div id="map"></div>
</div>
</div>
</div>

样式.css

.fluid-container {
margin: 0 0 0 0 !important;
padding: 0 0 0 0 !important;
width: 100%;
}

.row {
margin: 0 0 0 0 !important;
padding: 0 0 0 0 !important;
width: 100%;
}

html, body, .fluid-container, #app-row, #map-container {
height: 100%
}

#app-row {
margin: 0 0 0 0 !important;
padding: 0 0 0 0 !important;
}

#map-container {
margin: 0 0 0 0 !important;
padding: 0 0 0 0 !important;
}

#map {
height: 100%;
width: 100%;
}

我想要实现的目标:

Bottom 是页面底部,Top 是页面顶部。

最佳答案

尝试使用 navbar-fixed-bottom:

<div class="navbar navbar-default navbar-fixed-bottom">
<div class="container">
My footer
</div>
</div>

关于html - 在 bootstrap 中将 div 对齐到页面底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34470264/

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