sticky footer 模板

时间:2022-10-08 00:58:52
 
 
.masklayer{width: 100%; height: 100%; position: fixed; background: rgba(0,0,0,0.6); overflow: auto;}
.popup{min-height: 100%;}
.popup .main{padding-bottom: 1rem;}
.close{padding-bottom: .2rem; margin-top: -1rem; position: relative; clear: both; text-align: center;}
 
<div class="masklayer">
<div class="popup clearfix">
<div class="main">
qwew
</div>
</div>
<div class="close">close</div>
</div>