可以在body中用background-image的方法引用一张图片并使其占据整屏吗?我尝试用background-size 100% 100%,并让html和body 的height都为100%,但出来的效果确是
出现了滚动条。
`body,html{
height: 100%;
}
body {
background-image: url(images/login.jpg);
background-repeat: no-repeat;
background-size: 100% 100%;
}`
是不是你的图片太大了