jQuery MiniUI

 找回密码
 立即注册
查看: 2276|回复: 1
打印 上一主题 下一主题

MINIUI-Layout控件 [复制链接]

Rank: 2

跳转到指定楼层
楼主
发表于 2015-3-10 09:18:46 |只看该作者 |倒序浏览
页面布局为:
<div id="layout1" class="mini-layout" style="width:600px;height:400px;">
    <div title="north" region="north" height="80" >
        north
    </div>
        <div title="center" region="center" >
        center
    </div>
</div>
我想用js动态更改为
<div id="layout1" class="mini-layout" style="width:600px;height:400px;">
    <div title="east" region="east"  showCloseButton="true" >
        east
    </div>
    <div title="center" region="center" >
        center
    </div>
</div>
该怎么调整呢?

Rank: 8Rank: 8

沙发
发表于 2015-3-10 10:11:26 |只看该作者
把north的删掉,再添加上east面板
layout.removeRegion("north")
var newRegion={title:"east",region:"east",showCloseButton:true}
layout.addRegion(newRegion)

Archiver|普加软件

GMT+8, 2024-6-28 18:28 , Processed in 1.017970 second(s), 10 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部