<body>
    <div class='bottom'>
        这个div紧贴浏览器底部,且居中显示
    </div>
</body>

css代码:

.bottom{
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2022-01-15
  • 2022-12-23
  • 2021-06-29
猜你喜欢
  • 2022-12-23
  • 2021-12-31
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
相关资源
相似解决方案