ການສ້າງ: ບາດບັນຍັດທີ່ຢູ່ບ່ອນສຸດທ້າຍ

ສຶກສາວິທີການນຳໃຊ້ CSS ເພື່ອສ້າງບາດບັນຍັດທີ່ຢູ່ບ່ອນສຸດທ້າຍ/ທີ່ຈະຢູ່ຕະຫຼອດ

亲自试一试

ການສ້າງບາດບັນຍັດທີ່ຢູ່ບ່ອນສຸດທ້າຍ

<style>
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: red;
  color: white;
  text-align: center;
}
</style>
<div class="footer">
  <p>Footer</p>
</div>

亲自试一试

相关页面

教程:CSS 定位