以全屏模式运行网站 [英] Run a website in fullscreen mode

查看:564
本文介绍了以全屏模式运行网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我发现了一些使用HTML5技术的例子,但所有需要的都是需要的由人工互动触发。



该网站将在电视上显示......



I已经认为在全屏模式下使用SWF文件加载网站时,我想强调所有可能性,只需使用默认模式(html,css和javascript)。

解决方案

您无法强制以全屏模式显示网站。

想象一下安全问题,如果可能的话。

恶意网站可能会劫持一个不太懂计算机的人的桌面,以应对各种可疑的业务。



会抛出这样的错误:

无法在'Element'上执行'requestFullScreen':API可以
如果您尝试从您的代码中简单地调用它。



我很漂亮确保Flash类似,因为它需要用户交互才能全屏显示。否则,我们会看到我们公开分享的几乎无法关闭的全屏弹出窗口。


I am looking for a trick to put my website in fullscreen mode without human interaction.

I've found some examples using HTML5's techniques, but all of then needs to be triggered by a human interaction.

This website will be displayed in a TV ...

I already think in load the website using a SWF file in fullscreen mode, but instead of going to this direction, I would like to stress all possibilities using just the default pattern (html, css and javascript)

解决方案

You can't force a website to display in fullscreen mode.

Imagine the security concerns if that were possible.
Malicious websites could "Hijack" a less computer literate person's desktop for all kinds of dubious business.

All of JS fullscreen api's will throw a error like this:
"Failed to execute 'requestFullScreen' on 'Element': API can only be initiated by a user gesture." If you try to simply call it from your code.

I'm pretty darn sure Flash is similar, in that it requires user interaction to go fullscreen. Otherwise, we'd have seen our fair share of fullscreen popups that are nearly impossible to close.

这篇关于以全屏模式运行网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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