<style>

.footer{position:absolute;left:0;right:0}

</style>

<div classs="footer">

<button>结束</button>

</div>

也就是说只要给你所定位的div的类加上left:0;right:0;(margin:auto;这个好像不加也管用)就可以了!

相关文章:

  • 2022-01-29
  • 2021-08-10
  • 2021-08-30
  • 2021-09-16
  • 2022-01-16
  • 2021-11-30
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-11-30
  • 2021-10-14
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案