footer置底的几种方式

/* 通过calc()函数让内容区块自动伸缩 */
.my-body{
	min-height: calc(71.7vh - 80px);
}
footer{
	height:50px;
}

参考 :https://www.jianshu.com/p/6efe2c76a2dd

猜你喜欢

转载自blog.csdn.net/james_laughing/article/details/92141880
今日推荐