easyui-window窗口打开时panel产生的内联样式如何修改

弹框是由于div中top属性为负影响的,如何修改它

添加onLoad事件调用resize事件调整top属性就行了
onOpen:function(){$(this).window('resize',{top:200})}


resize  options     Set panel size and do layout. The options object contains following properties:
width: the new panel width
height: the new panel height
left: the new panel left position
top: the new panel top position

Code example:

$('#pp').panel('resize',{
    width: 600,
    height: 400
});

自己多看下api,window继承自panel,panel的方法都试用于window
http://www.jeasyui.com/documentation/index.php#

有用记得采纳 ~