當我寫媒體並檢查後 - 它的工作原理!但是當我編寫5-6個媒體查詢,並且在我檢查它們之後,它們不起作用!當媒體查詢有很多時不起作用
我試了下代碼:
@media screen and (max-width: 1280px) and (max-height: 1024px) {...}
@media screen and (max-width: 1366px) and (max-height: 768px) {...}
@media screen and (max-width: 1400px) and (max-height: 1050px) {...}
@media screen and (max-width: 1440px) and (max-height: 900px) {...}
這裏,在StackOverflow上,我看到後我一樣,用代碼:
@media screen and (max-width: 1920px), screen and (max-height: 1080px) {....}
但它不工作過。問題是什麼?
UPDATE
我用它在IE8與JS插件respond.js和CSS3,mediaqueries.js
任何瀏覽器的信息? –
不要忘了這個元標記'' –
猜測重疊的規則......我會去看看codepen – Ruskin