<body>
<div class='bottom'>
这个div紧贴浏览器底部,且居中显示
</div>
</body>
css代码:
.bottom{
position: absolute;
bottom: 0;
width: 100%;
text-align: center;
}
<body>
<div class='bottom'>
这个div紧贴浏览器底部,且居中显示
</div>
</body>
css代码:
.bottom{
position: absolute;
bottom: 0;
width: 100%;
text-align: center;
}
转载于:https://www.cnblogs.com/mengfff/p/5054305.html