简体   繁体   中英

How to hide Safari’s toolbars when orientation changes to landscape mode?

I've tried the following approach:

<meta name="viewport" content="width=device-width, minimal-ui">

and

window.addEventListener('load', function() {
setTimeout(scrollTo, 0, 0, 1);
}, false);

But it hasn't worked. Could you advise something on this?

The best solution I found is this one . Basically make your content higher than viewport and it would become fullscreen (Hiding toolbars) when switching to landscape. Not perfect but usable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM