0
我一直在這工作了大約一個星期的開關。我把下面的媒體查詢放在我的代碼中,它也運行在我的iPhone 5s上。我只希望它在視網膜片& iPad上運行,只有視網膜平板電腦和iPad只媒體查詢
@media only screen and (min-device-width : 768px)
and (max-device-width : 1024px),
and (min-device-pixel-ratio: 2),
and (-o-min-device-pixel-ratio: 2/1),
and (-webkit-min-device-pixel-ratio: 2),
and (min--moz-device-pixel-ratio: 2) {
Retina iPad CSS Only
}
一些建議,那它應該是,但我沒有得到任何好結果...
@media only screen and (min-device-width : 1536px)
and (max-device-width : 2048px),
and (min-device-pixel-ratio: 2),
and (-o-min-device-pixel-ratio: 2/1),
and (-webkit-min-device-pixel-ratio: 2),
and (min--moz-device-pixel-ratio: 2) {
Retina iPad CSS Only
}