摘要: Sticky Footer:页脚footer永远在页面的底部,内容不够长时footer停留在底部,内容撑满时将footer往下挤,footer仍然停留在底部。 实现方式: 1、利用绝对定位和padding-bottom .container { position: relative; min-hei 阅读全文
posted @ 2021-08-17 17:55 吴小明- 阅读(104) 评论(0) 推荐(0) 编辑
摘要: /* 第一种方法:设置父容器的行高,子容器需要设置为行内块 */ .box1 { width: 200px; height: 200px; line-height: 200px; background: rgb(164, 214, 179); } .box1 span { display: inli 阅读全文
posted @ 2021-08-17 15:29 吴小明- 阅读(68) 评论(0) 推荐(0) 编辑