easyui如何嵌套

本文介绍了如何在EasyUI框架下进行页面布局的嵌套操作,通过删除不必要组件,如南部和东部区域,专注于中部center区域的嵌套方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

页面中先copy文档中的完全布局

<body class="easyui-layout">   
    <div data-options="region:'north',title:'North Title',split:true" style="height:100px;"></div>   
    <div data-options="region:'south',title:'South Title',split:true" style="height:100px;"></div>   
    <div data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width:100px;"></div>   
    <div data-options="region:'west',title:'West',split:true" style="width:100px;"></div>   
    <div data-options="region:'center',title:'center title'" style="padding:5px;background:#eee;"></div>   
</body>  

页面变为如此


去掉不必要的部分南部和东部。

<body class="easyui-layout">   
    <div data-options="region:'north',title:'North Title',split:true" style="height:100px;"></div>     
    <div data-options="region:'west',title:'West',split:true" style="width:100px;"></div>   
    <div data-options="region:'center',title:'center title'" style="padding:5px;"></div>   
</body>  





如果要嵌套的话,假设在中部center嵌套

<body class="easyui-layout">   
    <div data-options="region:'north',title:'North Title',split:true" style="height:100px;"></div>   
    <div data-options="region:'west',title:'West',split:true" style="width:100px;"></div>   
    <div data-options="region:'center',title:'center title'" style="padding:5px;">
    	<div class="easyui-layout" fit="true">
	        <div region="west" split="true" style="width:100px;">
	        </div>
	        <div region="center" split="true">
	        </div>
	        <div region="east" split="true" style="width:300px;">
        	</div>
    	</div>
    </div>








评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值