fixed自适应居中

来源:互联网 发布:seo中h1是什么意思 编辑:程序博客网 时间:2024/06/05 19:53

头部底部自适应居中

.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;}
原创粉丝点击