body{
width: 100%;
height: 100%;
background-image: url("../../common/image/backgroundimage.svg");
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
zoom: 1;
}
网页背景自适应及响应式,不随浏览器窗口变化而显示空白,随分辨率大小自动适应。
其中,运用.svg格式图片,所占空间小,且缩放不失真,兼容火狐、谷歌、ie