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

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

问题描述

我最近开发了一个提取混合http / https内容的网站。由于这个原因,我总是会在顶部显示地址栏(它不像其他网站那样自动隐藏)。以下是我正在谈论的内容:



是指向该网站的链接。



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

PS:如果有帮助,网站使用Twitter Bootstrap。

PPS:我不想使用全屏API, 'b

解决方案

检查这件事你需要的一切



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



Chrome浏览器团队最近实施了一项功能,告诉浏览器在用户将其添加到主屏幕时全屏显示该页面。它与iOS Safari模型类似。

 < meta name =mobile-web-app-capablecontent =是> 


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:

This is the link to the website.

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: 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/

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天全站免登陆