【css】内容不足时底部footer不在最低部解决办法

css部分:

  .continer{

    min-height: 100%;

    padding-bottom: 60px;

  }

  .footer{

    height: 60px;

    margin-top: -60px;

    background-color: #313741;

    color: #fff;

    text-align: center;

扫描二维码关注公众号,回复: 5489209 查看本文章

    padding: 20px 0;

  }

html部分:

<body>

  <div class='continer'>内容</div>

  <div class='footer'>底部</div>

</body>

猜你喜欢

转载自www.cnblogs.com/whblogs/p/10509056.html
今日推荐