简体   繁体   English

IE Chrome框架全屏

[英]IE Chrome Frame Full Screen

I have a working implementation of full screen working for Safari, Firefox, and Google Chrome. 我有一个适用于Safari,Firefox和Google Chrome的全屏工作实现方式。 From what I have read it should work for ie with google chrome frame but when I click the full screen button I created nothing happens. 从我已经阅读的内容来看,它应该适用于Google chrome框架,但是当我单击全屏按钮时,我创建的内容没有任何反应。 Any ideas? 有任何想法吗? Is it not yet supported? 还不支持吗?

$('#enable_fullscreen').click ->
  calculate_presentation_font_size(height)
  if docElm.requestFullscreen
    docElm.requestFullscreen()
  else if docElm.mozRequestFullScreen
    docElm.mozRequestFullScreen()
  else if docElm.webkitRequestFullScreen
    docElm.webkitRequestFullScreen()

Putting an alert in the "webkitRequestFullScreen" if statement shows that it does go to this condition in chrome frame but docElem.webkitrequestFullScreen() is undefined. 如果语句显示在chrome框架中确实达到了此条件,但将警报放入“ webkitRequestFullScreen”中,但docElem.webkitrequestFullScreen()未定义。

I've build it and made it work from this examples. 我已经构建好了它,并使其可以从本示例中使用。 https://developer.mozilla.org/en-US/docs/DOM/Using_full-screen_mode https://developer.mozilla.org/zh-CN/docs/DOM/Using_full-screen_mode

The only things I can see missing from your code for the webkit condition is the parameter "Element.ALLOW_KEYBOARD_INPUT" to the webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT) 对于Webkit条件,我能看到的代码中唯一缺少的是webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)的参数“ Element.ALLOW_KEYBOARD_INPUT”

Unfortunately the main problem of chrome frame is the communication with the IE window that literally behave like a difficult child ;-) 不幸的是,chrome框架的主要问题是与IE窗口的通信,这些窗口实际上表现得像一个困难的孩子;-)

For IE you can open a popup window in fullscreen mode by directly calling document.location.href for the source it will open the current page your are on 对于IE,您可以通过直接调用document.location.href作为源来以全屏模式打开弹出窗口,它将打开您所在的当前页面

window.open(document.location.href, 'myAppfullscreen', 'fullscreen=1');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM