在正常和全屏模式之间切换窗口 [英] Switch window between normal and full-screen mode
本文介绍了在正常和全屏模式之间切换窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以通过JavaScript强制窗口切换(正常和全屏模式) >)..?
Is it possible to force window to switch between normal and full-screen mode by JavaScript (no jQuery)..?
我知道如何在全萤幕中开启新视窗,但这不是我需要的。
I know how to open a new window in full-screen, but that is not what I need.
推荐答案
现在有一个适当的全屏API (首先是 Mozilla提出的,后来作为 W3C提案)已由Webkit(Safari 5.1 + / Chrome 15+)和Firefox(10+)。 这里的简要历史和用法示例。请注意,IE10将据称不支持API。
There's now a proper fullscreen API (first proposed by Mozilla and later released as a W3C proposal) has been implemented by Webkit (Safari 5.1+/Chrome 15+) and Firefox (10+). A brief history and usage examples here. Note that IE10 will allegedly not support the API.
这篇关于在正常和全屏模式之间切换窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文