简体   繁体   English

Internet Explorer 9和10全屏问题

[英]Internet explorer 9 and 10 full-screen issue

My requirement is that, on the the click of a button in my website, it should go full screen.Its working using the full-screen api in safari, chrome and firefox, but not in IE.Is there any proper way in which I can trigger full screen in IE 9 and IE 10? 我的要求是,在我的网站上单击一个按钮后,它应该会全屏显示。它可以在Safari,Chrome和Firefox中使用全屏api,但在IE中无法使用。我是否有任何适当的方法可以在IE 9和IE 10中触发全屏显示? Also I have used the full screen api mentioned in https://msdn.microsoft.com/en-us/library/dn265028%28v=vs.85%29.aspx , which tells me to use "msRequestFullscreen". 我还使用了https://msdn.microsoft.com/zh-cn/library/dn265028%28v=vs.85%29.aspx中提到的全屏api,它告诉我使用“ msRequestFullscreen”。 But in IE 11 it makes my website get cropped while in full-screen. 但是在IE 11中,它使我的网站在全屏模式下无法显示。 Is there any resolution to this crop issue? 这个作物问题有解决方案吗?

Lots of people are having these issues. 很多人都遇到这些问题。 You might want to just work for Edge instead. 您可能只想为Edge工作。 Not judging, but my advice. 不是判断,而是我的建议。 Most people use chrome/firefox. 大多数人使用chrome / firefox。 And Microsoft Edge has a higher rate than IE. 而且Microsoft Edge的速率比IE高。 Just use javascript, make it autodetect the browser the user is using, and if he's using IE, just make an unclosable pop-up saying "Sorry, please use a different browser" At least just until this IE fullscreen problem gets fixed. 只需使用javascript,使其自动检测用户正在使用的浏览器,如果他使用的是IE,只需做出一个无法关闭的弹出式窗口,说“对不起,请使用其他浏览器”,至少要等到此IE全屏问题解决为止。

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

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