如何让一张图片填满整个页面

1.选择一张较大的图片,一般为1920*1253

2.html {

  height: 100%;

}

body {
  width: 100%;

  height: 100%;

  background: url() left top no-repeat;

  background-size: 100% 100%;

}

posted @ 2016-01-14 20:01  PLDaily  阅读(2063)  评论(0编辑  收藏  举报