我在CSS上有幾個媒體查詢。他們前幾天的工作很完美,但我剛剛注意到他們都沒有做任何事情。 Here they are上下文(末),這是我的代碼:爲什麼我的@media不再工作?
/* MOBILE OPTIMISATION */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
body {
width: 89%;
margin: 0;
}
.post-entry {
width: 100%;
}
.widgets {
display: none;
}
p.frontpage_jobs {
width: 100%;
float: none;
}
#blog-wrap {
width: 100%;
}
.post-entry header h1 {
font-size: 1.5em;
}
}
/* TABLET OPTIMISATION */
@media screen and (max-width: 800px) {
body {
width: 89%;
//float: none;
margin: 0;
}
.post-entry {
width: 100%;
}
.widgets {
display: none;
}
p.frontpage_jobs {
width: 100%;
float: none;
}
#blog-wrap {
width: 100%;
}
.post-entry header h1 {
font-size: 1.5em;
}
}
@media screen and (max-width: 1200px) {
#main-content {
width: 1200px;
}
.widgets {
display: none;
}
}
編輯
我的網站是here。
您是否擁有支持移動設備的正確元視圖? – chadpeppers
我不知道,但我正在使用移動就緒的Thinking WP主題的修改版本(http://www.wpexplorer.com/thoughts-wordpress-theme/),並且我已成功設法優化移動之前 - 它以某種方式恢復或不適用。我認爲我做了另一個改變它的改變。 – Sebastian
確保你的
– chadpeppers