gpt4 book ai didi

javascript - 为什么全屏功能在 Chrome 中不起作用?

转载 作者:行者123 更新时间:2023-11-29 22:36:03 29 4
gpt4 key购买 nike

我需要使用 javascript 全屏打开窗口。我在 mozilla 中成功了。但在谷歌浏览器中它不起作用。为什么会这样。?任何人帮助我。我将此 javascript 用于 mozzilla。

<INPUT type="button" value="Progress window!" onClick="window.open('divs.htm','mywindow',
'fullscreen=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no')">

最佳答案

https://developer.mozilla.org/en/DOM/window.open

fullscreen

Do not use. Not implemented in Mozilla. There are no plans to implement this feature in Mozilla.

This feature no longer works in MSIE 6 SP2 the way it worked in MSIE 5.x. The Windows taskbar, as well as the titlebar and the status bar of the window are not visible, nor accessible when fullscreen is enabled in MSIE 5.x.

fullscreen always upsets users with large monitor screen or with dual monitor screen. Forcing fullscreen onto other users is also extremely unpopular and is considered an outright rude attempt to impose web author's viewing preferences onto users.

Supported in: IE

fullscreen does not really work in MSIE 6 SP2.

关于javascript - 为什么全屏功能在 Chrome 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5003174/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com