Chrome中的子窗口全尺寸 [英] Child window full-size in Chrome

查看:215
本文介绍了Chrome中的子窗口全尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Chrome浏览器中打开一个全尺寸的子窗口,以下代码在Firefox 16.0.2和IE 9中运行良好,但在Google Chrome 22中运行良好。我缺少什么?

  window.open(href,_ blank,scrollbars = 1,fullscreen = yes,status =没有,工具栏=没有,菜单栏=没有,位置=无); 


解决方案

全屏选项仅受IE的支持;你是幸运的,FF似乎现在就接受它,但谷歌浏览器不支持此功能......



你只能强制弹出窗口的宽度和高度

http://www.w3schools。 com / jsref / met_win_open.asp

I need to open a child window full-size in Chrome browser, the following code works fine in Firefox 16.0.2 and IE 9, but not in Google Chrome 22 . What am I missing?

window.open(href,"_blank","scrollbars=1,fullscreen=yes,status=no,toolbar=no,menubar=no,location=no");

解决方案

The fullscreen option is supported by IE only ; you are "lucky", FF seems to accept it now, but Google Chrome doesn't support this feature...

You only can force width and height on your popup

http://www.w3schools.com/jsref/met_win_open.asp

这篇关于Chrome中的子窗口全尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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