【发布时间】:2012-02-17 11:35:49
【问题描述】:
我想展开用户点击扩展按钮时弹出的窗口...
(我想把弹窗放大到红色区域)
这是我用来显示弹出窗口的代码;
< style type="text/css" >
body {
min-width: 1005px; /* your desired width */
max-width: 100%;
position: relative;
vertical-align:middle;
}
< /style >
< iframe src="http://stackoverflow.com" width="100%" height="100%" scrolling="auto" > < /iframe >
我试过(在 body css 中)宽度:1280px;高度:800px; - 但没有运气。它无法正常工作...
更新: 类似的问题(可能是重复的?); chrome extension, popup window's height
【问题讨论】:
-
你试过把最小宽度改成你想要的宽度吗?
-
@Walkerneo 我试过了。我开始认为这是 chrome 的安全功能。 (现在,我正在搜索一个窗口大小比我的弹出窗口更大的弹出扩展_)
标签: html css google-chrome iframe google-chrome-extension