2 回答

TA貢獻(xiàn)1777條經(jīng)驗 獲得超10個贊
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | <div id="content" class="wrapperXXX">
<div class="container-fluid mainXXX"> ... </div>
<div class="navbar navbar-default navbar-fixed-bottom bottomXXX"> <div class="container-fluid"> <h2>bottom div</h2> </div> </div>
</div>
<style type="text/css"> .wrapperXXX { position: fixed; width: 100%; height: 100%; }
.mainXXX { background-color: pink; height: 100%; }
.bottomXXX { background-color: lime; } </style> |
效果:
窗口縮小時:
拉大時:
- 2 回答
- 0 關(guān)注
- 1069 瀏覽
添加回答
舉報