在 Android 上的 Chrome 中强制隐藏地址栏 [英] Force hide address bar in Chrome on Android

查看:143
本文介绍了在 Android 上的 Chrome 中强制隐藏地址栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开发了一个获取混合 http/https 内容的网站.因此,我总是将地址栏显示在顶部(它不像其他网站那样自动隐藏).这就是我要说的:

I recently developed a website that fetches mixed http/https content. Due to this, I always get the address bar displayed on top (It doesn't auto-hide like in other websites). Here's what I'm talking about:

是该网站的链接.

内容是从各种来源获取的,因此无法过滤非 https 内容.而且由于该网站是用于阅读的,因此非全屏显示对读者来说是痛苦的.那么,有没有办法强制自动隐藏行为?

The content is fetched from various sources, hence filtering non-https content is not possible. And since the website is meant for reading, a non-full-screen display is painful for the reader. So, is there a way to force the auto-hide behavior?

PS:如果有帮助,该网站使用 Twitter Bootstrap.
PPS:我不想使用全屏 API,它太重了.

PS: The website uses Twitter Bootstrap, if it helps.
PPS: I don't want to use the full-screen API, it'll be too heavy for this.

推荐答案

检查这里有你需要的一切

Check this has everything you need

http://www.html5rocks.com/en/mobile/fullscreen/

Chrome 团队最近实施了一项功能,当用户将页面添加到主屏幕时,它会通知浏览器全屏启动页面.它类似于 iOS Safari 模型.

The Chrome team has recently implemented a feature that tells the browser to launch the page fullscreen when the user has added it to the home screen. It is similar to the iOS Safari model.

<meta name="mobile-web-app-capable" content="yes">

这篇关于在 Android 上的 Chrome 中强制隐藏地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆