1
我的手机背景有问题。响应背景CSS位置
我使用媒体查询,我无法确定该背景图像的位置。
在这里您可以看到a background image。
这是我的媒体查询代码:
@media only screen (max-device-width : 360px) {
.sidebar {
display: none;
}
li#menu-item-631 a {
width: 100px;
}
#navmenu {
margin-top: 20px;
margin-left: 0;
margin-right: 0;
}
.content {
width: auto;
height: auto;
margin-left: 0;
margin-top: -130px;
}
.contentsing {
width: 500px;
height: auto;
margin-left: 20%;
margin-right: 5%;
margin-top: -150px;
}
}
这是我的后台代码
body {
background: url() no-repeat top center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
font-family: AntonioLight;
font-size: 1em;
padding: 0;
margin: 0;
}
您的网站是否响应? –
我真的很抱歉,但实际上你在问什么,这是非常不清楚的。你认为你可以向我们提供更多关于问题是什么以及你想要达到什么的细节?如果可能的话,在[JSFiddle](http://jsfiddle.net/)上加入一个例子,人们可以与你的代码进行交互。 – johnkavanagh
好吧,我刚刚阅读,你正在使用设备宽度 –