前言:其实很简单的,只是没有重新调用输入下参数,唉,bom学的不好
只要设置一个动态的宽高就行,然后再下面方法加入以下代码即可 // 监听resize事件,使插件窗口尺寸跟随DIV窗口变化
$(window).resize(function (e) {
wndWidth=e.currentTarget.document.body.clientWidth-50;
wndHeight=e.currentTarget.document.body.clientHeight-200;
if (oWebControl != null) {
oWebControl.JS_Resize(wndWidth, wndHeight);
setWndCover();
}
});