Я уже неделю борюсь с этим. Я прочитал массу сообщений / веб-сайтов / советов и приемов, но я просто не могу этого понять.
Мне нужно установить правила CSS для разных размеров экрана и ориентации. Но с распознаванием это не работает.
Я пробовал: min-width, max-width, min-height, max-height, min-device-width, max-device-width, min-device-height, max-device-height, ориентация: портрет, ориентация : landscape, media = "только экран и (max ...", media = "screen and (max ...", media = "(max .."), всевозможные убеждения, ничего из этого не работает для всех разрешения и ориентации.
Это и пример:
<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