提供一个对话框以在 Web 应用程序上使用浏览器固有的全屏
有没有办法触发对话框以使用全屏内置浏览器? (并保持全屏)(例如通常可通过 f11 访问的视图模式)
问题参数:
我有一个 webGL Web 应用程序,其中常见的使用情况是集中浏览应用程序超过 10 分钟。 在那段时间里,我很乐意向用户建议全屏 - 这样用户界面就不会因浏览器差异而中断,并且可以使用尽可能多的屏幕空间。
(有多种方法可以在全屏中创建弹出窗口 - 但这并不适用于所有浏览器。最好的情况是:浏览器功能的非模式 Javascript 可访问 API)
Chrome、Firefox、Opera、(IE) - 解决方案这个重要性顺序。
如果可以避免,请不要讨论问题参数。除非有什么重要的事情我错过了。 =)
Is there a way to trigger a dialog to use browser built in Fullscreen? (And to leave fullscreen) (e.g. the mode of view that is usually accessible via f11)
Question Parameters:
I have a webGL webapplication where a common case of use is browsing the app for more than 10 minutes intensively.
During that time i would love to suggest fullscreen to users - so that the UI isn't interupted by browser differences and can use the most screen estate possible.
(There are several ways to create pop ups in Fullscreen - but that doesn't work on all browsers. In the best case: Non-modal Javascript accessable API to the browser functionality)
Chrome, Firefox, Opera, (IE) - solutions in that order of importance.
Please don't discuss question parameters if it can be avoided. Unless there is something important i have missed. =)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
标准正在制定中,但不要指望再过一两年……标准的批准非常缓慢。这在一定程度上与鼠标锁定有关,这是目前由 Google 的 Vincent Schieb 在 Chrome 上实现的一个很好的功能。
如果您想测试在 Nightly Webkit 浏览器(例如 Chrome Canary)上运行的全屏 API,这里的 Javascript 代码将使您的页面全屏显示:
There are standards in the works, but don't count on that for another year or two... Standards approval are very slow. This is in part related to mouse locking, which is a nice feature being implemented currently on Chrome by Vincent Schieb from Google.
If you want to test the Fullscreen API working on Nightly Webkit browsers (e.g. Chrome Canary) here's the Javascript code that will make your page go fullscreen: