css/html fix a div at the bottom of the page

Use the position: fixed attribute

<div class='bottom'>

</div>
<style lang='scss'>
    .bottom{
        height:'100px';
        width:100%;
        position:fixed;
        bottom:0
    }
</style>

Guess you like

Origin blog.csdn.net/weixin_62462734/article/details/129988546