全屏API HTML5和Safari(iOS 6中) [英] Full screen api HTML5 and Safari (iOS 6)

查看:3089
本文介绍了全屏API HTML5和Safari(iOS 6中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使一个应用程序以全屏幕模式在Safari for iOS 6的运行(不顶栏)。
在code是如下:

I'm trying to make an application to run in full screen mode (without the top bar) in Safari for iOS 6. The code is as follows:

var elem = document.getElementById("element_id");
if (elem.requestFullScreen) {
  elem.requestFullScreen();
} else if (elem.mozRequestFullScreen) {
  elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullScreen) {
  elem.webkitRequestFullScreen();
}

它的工作原理以及在桌面浏览器。但是,在移动Safari浏览器(IOS)6不起作用。

It works well on desktop browsers. But in Mobile Safari (iOS) 6 does not work.

有关此问题的任何想法?

Any idea about this issue?

推荐答案

它不支持...

http://caniuse.com/fullscreen

这篇关于全屏API HTML5和Safari(iOS 6中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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