头部底部自适应居中
.header,.footer{
position:fixed;
margin:0 auto;
left: 0;
right: 0;
height:50px;
background: #f00;
max-width: 480px;
width: 100%;
}
.header{top: 0;}
.footer{bottom: 0;}
头部底部自适应居中
.header,.footer{
position:fixed;
margin:0 auto;
left: 0;
right: 0;
height:50px;
background: #f00;
max-width: 480px;
width: 100%;
}
.header{top: 0;}
.footer{bottom: 0;}