body
{background: url("http://img51hongma.xiaobianli8.com/wp-content/uploads/2021/08/bg.png") repeat-x/*平铺方式*/;

background-size: cover;
 
}



.div{
   position: relative;
   width:100%;
  height:200px;
text-align:center; 
  }
 .div img{
   position: absolute;
     bottom: 0;
  }



 #container{
    /*保证footer是相对于container位置绝对定位*/
   
    width:100%;
    min-height:100%; 
    /*设置padding-bottom值大于等于footer的height值，以保证main的内容能够全部显示出来而不被footer遮盖；*/  
    padding-bottom: 200px;  
    box-sizing: border-box;

  
}

  footer{
    width: 100%;
    height:200px;   /* footer的高度一定要是固定值*/ 
    position:absolute;
    bottom:10px;
    left:0px;
    text-align:center; 
   
}
 .footer img{
   position: absolute;
     bottom: 10;

 }
 
