背景铺满整个页面并且自适应

body{

background:url(top.png) no-repeat;
background-size: cover;
background-position: center center;
background-attachment: fixed;
height:100%;
width:100%;

}

posted @ 2017-05-23 10:33  lieaiwen  阅读(488)  评论(0编辑  收藏  举报