不寻常的问题,我只是无法弄清楚它为什么会发生,基本上我尝试通过 responsinator 查看网站,一切似乎都很好,当调整浏览器大小时它似乎也很好(即使在移动设备大小)但是在 iPhone 上查看网站时似乎根本没有听媒体查询..
在验证整个 CSS 时,我得到以下信息
Parse Error
@media only screen and (max-width: 600px) {
#container {
margin: 0 auto;
max-width: 85%;
overflow: hidden;
}
nav #pull {
position: absolute !important;
top: 5px !important;
left: 5px !important;
}
nav ul {
display: none;
height: auto;
}
nav a#pull {
text-align: left;
margin-top: -3px;
font-family: 'Oswald', sans-serif;
font-weight: 300;
font-size: 18px;
display: block;
width: 90%;
}
nav a#pull:after {
background: url('nav-icon.png') no-repeat;
height: 1px;
display: block;
position: absolute;
right: 15px;
}
#mainHeader nav {
text-align: center;
min-height: 25px;
height: 100%;
width: 100%;
border-bottom: 1px solid #dfdfdf;
}
#mainHeader nav ul li {
padding: 10px;
margin-top: 23px;
font-size: 16px;
}
#mainHeader nav ul li a {
padding: 0px;
}
#mainHeader nav a:hover {
color: #dfdfdf;
}
#mainHeader ul {
list-style: none;
margin: 0 auto;
height: 53px;
}
#mainHeader nav ul li a {
padding: 0px 0px;
}
.banner .label {
margin-bottom: 5px;
width: 50%;
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-topright: 5px;
-moz-border-radius-bottomright: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
.banner .category {
text-align: right;
min-width: 96.5%;
}
#mainContent {
float: right;
width: 100%;
}
#mainContent img {
width: 96.5%;
}
.article {
position: absolute !important;
top: -9999px !important;
left: -9999px !important;
}
#footer {
height: 50px;
}
}
有任何想法吗?