我实现了哪些更改,使backgound image Back.jpg显示全屏并滚动内容,现在它只适用于台式机内容应滚动,图像保持全屏
图像宽度为1500宽乘1000高,在手机中图像看起来缩小了,但在台式机上看起来不错。
<style>
html, body {
margin:0;
padding:0;
border:0;
height:100%;
background: url(Back.jpg) center no-repeat fixed;
}
</style>
<style>
html, body {
margin:0;
padding:0;
border:0;
height:100%;
background: url(Back.jpg) no-repeat center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
</style>
background-size:cover;
将处理媒体查询,可能是