移動端H5固定底部導航菜單的三種佈局實現

需求: 需要把導航固定在底部?只能滑動內容,導航菜單固定不動的。效果如下: 滾動區域 底部固定菜單 方法一:使用fixed .box{ .roll{ padding-bottom:1rem; } footer{ position:fixed;bottom:0;z-index:999; } } 滾動區域留下底部導航高度的padding距離 底部導航fixed固定定位到底部 設置z-index:999
相關文章
相關標籤/搜索