是否可以使用html5自动全屏? [英] Is possible automatic fullscreen with html5?

查看:363
本文介绍了是否可以使用html5自动全屏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我基于在网络浏览器中使用Fullscreen API(http://hacks.mozilla.org/2012/01/using-the-fullscreen-api-in-web-browsers)进行全屏,但仅适用于使用click事件或使用控制台firebug,而不是使用提交事件或鼠标悬停或类似的自动化。是否可以使用html5自动全屏,没有点击事件或类似事件?

I'm based on Using the Fullscreen API in web browsers (http://hacks.mozilla.org/2012/01/using-the-fullscreen-api-in-web-browsers ) for fullscreen , but only works with a click event or with console firebug, not with submit event or mouseover or similar for made automatic. Is possible automatic fullscreen with html5 without click event or similar ?

编辑:我理解安全性和可访问性的原因,如果不可能,但在某些环境中,这可能是有希望的。

I understand the security and accessibility reasons if not possible, but in some environments this can be hopeful.

推荐答案

不,这是不可能的 - 出于安全原因,访问全屏需要用户的权限,因此与浏览器输入相关联事件。

No, it's not possible - for security reasons accessing full screen requires the user's "permission", and so is tied to browser input events.

这篇关于是否可以使用html5自动全屏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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