对将要固定至底部的 div 设置如下 class 样式即可:
设置基础宽高后并添加绝对位置定位 position 为 fixed 和 bottom 为 0;
.footViewStyle {
/*底部视图*/
background-color: #F4F5F6;
width: 100%;
height: 60px;
position: fixed;
bottom: 0;
}
以上便是此次分享的全部内容,希望能对大家有所帮助!
对将要固定至底部的 div 设置如下 class 样式即可:
设置基础宽高后并添加绝对位置定位 position 为 fixed 和 bottom 为 0;
.footViewStyle {
/*底部视图*/
background-color: #F4F5F6;
width: 100%;
height: 60px;
position: fixed;
bottom: 0;
}
以上便是此次分享的全部内容,希望能对大家有所帮助!
本文标题:通过 css 将 div 固定在底部 - css
本文链接:https://www.haomeiwen.com/subject/glognhtx.html
网友评论