Когда я фокусирую поле ввода на своем веб-сайте в мобильной клавиатуре Android, открывается код запросов ландшафтного мультимедиа, применяемый к элементам html. Я нахожусь в портретном режиме с открытием клавиатуры.CSS Ориентация ландшафтных проблем android
мой медиа-запрос как
@media screen and (min-width: 320px) and (max-width: 1023px) and (orientation: landscape) { ... }
Я должен показать сообщение, при просмотре пользователем веб-сайта в ландшафтном режиме «мы не поддерживаем пейзажное». Любое решение CSS для него.
html {
box-sizing: border-box;
}
*,
*:after,
*:before {
box-sizing: inherit;
}
* {
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
}
.content {
background: red;
height: 100%;
}
p {
color: white;
text-align: center;
padding: 10px;
font-size: 16px;
font-family: sans-serif;
}
input {
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 30px;
background-color: #eee;
}
/* Landscape */
@media screen and (min-width: 320px) and (max-width: 1023px) and (orientation: landscape) {
\t .content {
\t background-color: orange;
\t position: relative;
\t &:before {
\t \t content: '';
\t \t
\t }
\t }
}
<div class="content">
<p>Focus on input in android mobile, keypad opens. Lanscape media query working in portrait view with keypad opens. Any CSS solution for it.</p>
<input type="text" />
</div>
Спасибо.
Вы проверили устройство? –