js中window.open怎么弹出一个自适应大小的窗口???
来源:百度知道 编辑:UC知道 时间:2024/05/25 00:36:24
弹出一个自适应大小的窗体,类似的方法也可以,希望不吝赐教。
随着内容自适应大小的窗体
随着内容自适应大小的窗体
function MM_openBrWindow(theURL,winName,features,userId) { window.open(theURL,winName,features);
}
MM_openBrWindow('scrip.jsp?userId=<bean:write name="userinfo" property="userId"/>','','width=500,height=540','<bean:write name="userinfo" property="userId"/>')
中间那个width和heigth就是你想要的。
我也在烦恼这个问题,不知你怎么解决的