要实现的效果如下(footer要固定在页面底部):
footer的css如下:
height: 60px; background: pink; margin: 0px; position: fixed; bottom: 0px; width: 100%;
css相对于父容器,固定放在底部并撑满
原文:https://www.cnblogs.com/liyuanhong/p/14512158.html