Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
#slider {
position:absolute;
width: 100%;
height: 80%;
left: 0%;
top: 20%;
}
Also etwas in dieser Art:Deshalb würde ich gerne bei einer Portrait-Version einen Hinweis einblenden: Du kannst die Seite optimal sehen wenn Du Dein Smartphone quer hälst.
<p class="alert">Du kannst die Seite optimal sehen wenn Du Dein Smartphone quer hälst.</p>
@media (orientation:portrait) { * {display:none} p.alert {display:block} }
Der universelle *-Selektor zuvor schließt selbstverständlich auch <html> und <body> einAllerdings wird bei mir das p.alert im Portrait-Modus nicht angezeigt.
html,body,p.alert {display:block}