Android版Chrome浏览器的全屏通过JavaScript(平板电脑) [英] Fullscreen via Javascript on Chrome for Android (tablets)

查看:2155
本文介绍了Android版Chrome浏览器的全屏通过JavaScript(平板电脑)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让我的网路应用程式隐藏Chrome上的浏览器标签和地址栏。 document.documentElement.requestFullScreen()似乎没有效果。 window.scroll(0,1)无法在平板电脑上使用。



如果可能,我会也喜欢iOS和Chrome和Safari的优秀解决方案。



任何想法?我在Chrome 29上为Android。

解决方案

检查此示例: here
$ b 试着使用 webkitRequestFullscreen()



同时在 requestFullscreen()中降低了S并将 document.webkitCancelFullScreen() document.webkitExitFullscreen()。更新浏览器兼容性评论。
通过
Let-Your-Content-Do-the-Talking-Fullscreen-API


I would like to have my web app hide the browser tabs and address bar on Chrome on mobile. document.documentElement.requestFullScreen() seems to have no effect. window.scroll(0,1) doesn't work either on tablets.

If possible, I'd also love a good solution for Chrome and/or Safari on iOS.

Any ideas? I'm on Chrome 29 for Android.

解决方案

Check this sample: here

try to use webkitRequestFullscreen()

Also "Lowercased the "S" in requestFullscreen() and changed document.webkitCancelFullScreen() to document.webkitExitFullscreen(). Updated browser compatibility comment." via Let-Your-Content-Do-the-Talking-Fullscreen-API

这篇关于Android版Chrome浏览器的全屏通过JavaScript(平板电脑)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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