Chrome / Firefox进入全屏状态? [英] Force Chrome/Firefox into Full Screen?

查看:287
本文介绍了Chrome / Firefox进入全屏状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用chrome来显示一个全屏html页面。您可以将Chrome设置为全屏模式,但似乎退出的唯一方法是将鼠标移动到屏幕顶部并单击: ://i.stack.imgur.com/ggyBf.pngalt =

我不想禁用退出的功能全屏幕,我只是想这样做,退出的唯一方法是通过按ESC键,而不是鼠标的位置。这种方式基本上浏览器管理员是唯一可以摆脱演示文稿。在Firefox或Chrome中可能吗?如果这是不可能的,我可以写一个扩展名吗?

解决方案

Chrome浏览器在版本4.0.245.0中实现了Kiosk模式。这本质上是一种在地址栏和状态栏被禁用的情况下以全屏模式启动浏览器的方法。某些键盘快捷键(例如Fullscreen)也被禁用。



在Windows上: chrome.exe -kiosk http://yoursite.com/ file.html



一切: chromium-browser --kiosk http://yoursite.com/file .html



注意:使用'exit program'键盘组合来杀死它。 b $ b

I want to use chrome to display a full-screen html page for a presentation. You can set chrome to fullscreen mode, but it seems the only way to exit is moving the mouse to the top of the screen and clicking:

I don't want to disable the ability to exit full-screen, I just want to make it so the only way to exit is via pressing the ESC key, not the mouse position. That way basically browser "admin" are the only ones who can get out of the presentation. Is that possible in Firefox or Chrome? Could I write an extension for this if it's not possible?

解决方案

Using my comment for an Answer:

Chrome implemented 'Kiosk Mode' in version 4.0.245.0. This is, essentially, a way to launch the browser in fullscreen mode with the Address Bar and Status Bar disabled. Some keyboard shortcuts (Fullscreen, for example) are also disabled.

On Windows: chrome.exe -kiosk http://yoursite.com/file.html

On everything else: chromium-browser --kiosk http://yoursite.com/file.html

Note: Use your 'exit program' keyboard combo to kill it.

这篇关于Chrome / Firefox进入全屏状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆