[英]Open google chrome in full screen
I want google chrome to start in full screen mode ( f11
) when i start it. 我希望Google Chrome在启动时以全屏模式(
f11
)启动。
I have done this by adding: --kiosk
after the target path. 我通过在目标路径后添加
--kiosk
来完成此操作。
However when i start up google chrome via the short cut ( The one i just edited) it works. 但是,当我通过快捷方式(我刚刚编辑的那个)启动google chrome时,它可以工作。
But when i start it from usb-webserver it does not work. 但是,当我从usb-webserver启动它时,它不起作用。
I think this is becuase it is taking my primary location of google chrome instead of the shortcut. 我认为这是因为它占用了我的Google chrome的主要位置,而不是快捷方式。 However i can't edit the primary location of chrome.
但是我不能编辑铬的主要位置。
How do i start up google chrome in full screen everytime i start it via usb-webserver? 每次通过USB网络服务器启动Google Chrome时,如何全屏启动?
If this is not posible, is it posible to start the page in full screen via javascript
or html
or php
? 如果这不可行,是否可以通过
javascript
或html
或php
全屏启动页面?
EDIT: 编辑:
The page reloads every 3-5 minuts. 该页面每3-5分钟重新加载一次。 So i don't want a script, that presses f11 every time the page is loading.
所以我不想要一个脚本,每次加载页面时按f11键。 Becuase if that is the case, it will go full-screen - normal - full-screen - normal etc.
如果是这种情况,它将进入全屏-正常-全屏-正常等状态。
EDIT 2 编辑2
Right now my website boots up via index.php 现在我的网站通过index.php启动
However index.html gets the priority. 但是index.html拥有优先权。 So can i make something in index.html that makes the page go full screen.
因此,我可以在index.html中做些什么使页面全屏显示吗。 and then auto-redirect to index.php?
然后自动重定向到index.php?
The PHP way on a windows machine may be like this. Windows机器上的PHP方式可能是这样。 Chrome has to be closed before the start.
Chrome必须在启动前关闭。
<?php
$file = fopen("do.bat", "w");
// insert your real chrome path here
fwrite($file, '"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --kiosk "http://www.reddit.com"' . "\n\r");
fclose($file);
$answer = shell_exec("do.bat");
echo $answer."</br>";
单击F11或在LX中运行chromium-browser --window-size=7000,7000 --start-fullscreen
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.