我正在開發響應式設計,並開始使用firefox responsive design view
與我的媒體查詢,他們都在使用它..但是當我開始在iphone5上使用safari時,沒有工作。我有我的頭標記我的響應式設計不適用於Safari/iPhone 5s
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
...我錯過了一些需要在那裏爲Safari/iphone 5s?提前致謝!
我已經試過這些
/* iPhone 5 Retina regardless of IOS version */
@media (device-height : 568px)
and (device-width : 320px)
and (-webkit-min-device-pixel-ratio: 2)
/* and (orientation : todo: you can add orientation or delete this comment)*/ {
/*IPhone 5 only CSS here*/
}
或@media screen
嘗試:
@media screen and (device-aspect-ratio: 40/71) {
}