このチュートリアルから学んだ、Retina に最適化されたロゴを表示するための CSS は次のとおりです。
しかし!iPad と Samsung Galaxy Note II (safari、Firefox、Dolphin アプリ) でテストすると、網膜画像が 1200px x 500px のフルサイズで表示されます。
したがって、サイズを変更するのではなく、適切な画像を取得しています。
手がかりを求めて Web を精査しましたが、何も見つかりません。今のところ、網膜画像の提供をあきらめようとしています。何か案は?本当にありがとう!
<div class="logo-splash"></div>
/* CSS for devices with normal screens */
.logo-splash {
height: 250px;
background-size: 600px 250px;
background: url(images/iaay_splash_logo.png) no-repeat center center;
}
@media only screen and (-Webkit-min-device-pixel-ratio: 1.5),
only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5) {
.logo-splash {
background-size: 600px 250px;
height: 250px;
background: url(images/iaay_splash_logo@2x.png) no-repeat center center;
}
}