Front-end

通过 css 将 div 固定在底部 - css

2020-05-13  本文已影响0人  survivorsfyh

对将要固定至底部的 div 设置如下 class 样式即可:
设置基础宽高后并添加绝对位置定位 position 为 fixed 和 bottom 为 0;

.footViewStyle {
  /*底部视图*/
  background-color: #F4F5F6;
  width: 100%;
  height: 60px;
  position: fixed;
  bottom: 0;
}

以上便是此次分享的全部内容,希望能对大家有所帮助!

上一篇 下一篇

猜你喜欢

热点阅读