我一直在爲此奮鬥了一個星期。我已經閱讀了大量的帖子/網頁/技巧&技巧,但我無法弄清楚這一點。PhoneGap + Android +媒體查詢
我需要爲不同的屏幕尺寸和方向設置CSS規則。但承認它不起作用。我試過: 最小寬度,最大寬度,最小高度,最大高度,最小設備寬度,最大設備寬度,最小設備高度,最大設備高度,最大設備寬度,最大設備寬度,最大設備寬度,方向:縱向,方向:風景,媒體=「僅屏幕和(最大...」,媒體=「屏幕和(最大...」,媒體=「(最大..」),所有類型的流程,沒有這適用於所有的分辨率和方向
這是和示例:?
<link rel="stylesheet" href="css/iscroll.css" />
<link rel="stylesheet" href="css/iscroll_600.css" type="text/css" media="only screen and (max-width: 600px) and (max-height: 1024px) and (orientation: portrait)"/>
<link rel="stylesheet" href="css/iscroll_600.css" type="text/css" media="only screen and (max-width: 1024px) and (max-height: 600px) and (orientation: landscape)"/>
<link rel="stylesheet" href="css/iscroll_1280.css" type="text/css" media="only screen and (max-width: 800px) and (max-height: 1280px) and (orientation: portrait)"/>
<link rel="stylesheet" href="css/iscroll_1280.css" type="text/css" media="only screen and (max-width: 1280px) and (max-height: 800px) and (orientation: landscape)"/>
我怎樣才能解決這個問題 感謝
dhcmega
嗨重疊決議的,我愛你的測試,我將是巨大的,知道什麼是但它看起來像Android不支持它:05-07 16:45:15.179:E/Web控制檯(2412):TypeError:表達式結果'window.matchMedia'[undefined]不是函數。在file:///android_asset/www/index.html:36 –
我使用這個視口: –
我想我已經解決了它。看起來我應該創建一組不相互重疊的分辨率。 –