Tomcat_wr8 2018-07-11 02:02 采纳率: 0%
浏览 1540
已结题

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

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

  • 写回答

1条回答 默认 最新

  • Go 旅城通票 2018-07-11 02:09
    关注

    添加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#

    有用记得采纳 ~

    评论

报告相同问题?

悬赏问题

  • ¥15 我这模型写的不对吗?为什么lingo解出来的下面影子价格这一溜少一个变量
  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波