Мой медиа-запрос для портретной ориентации, похоже, не работает. Любые идеи, что я делаю неправильно, пожалуйста?медиа-запрос для портретной ориентации не работает
HTML:
<div class="titleCard" id="first" style="background-color:white"></div>
CSS:
html, body { -webkit-backface-visibility:hidden;}
#first {
background-color: #000;
width: 100%; max-width: 1920px;
height: 100%; max-height: 1080px;
background: url('images/bg.png') no-repeat center;
background-size:cover;
position:relative;
}
.bgwidth { width: 100%; max-width: 1920px; }
.bgheight { height: 100%; max-height: 1080px; }
@media all and (orientation:portrait) {
background: url('images/Mobile_Art.jpg') no-repeat center;
}
Где вы проверили этот код? – Pinal
http://newsinteractive.post-gazette.com/bootstrap2/prohibition/index4.html на Droid Razr и с инструментами Firefox> Расширение веб-разработчика> Изменение размера> Просмотр ответных макетов – LauraNMS