开发者社区> 问答> 正文

easyui layout的布局问题

<div title="South Title" style="height:100px;"></div> 
    <div title="East" style="width:100px;"></div> 
    <div title="West" style="width:100px;"></div> 
    <div title="center title" style="padding:5px;background:#eee;"></div>       

这样的div怎么使用js将其设置为easyui layout的布局方式,并其子div分别设置为对应的东西南北中各个区域

展开
收起
小旋风柴进 2016-03-19 11:20:16 2001 0
1 条回答
写回答
取消 提交回答
  • js调用下layout方法,注意layout要设置好外层容器,高度宽度也要设置好

        <div id="layout"  style="width:700px;height:350px;">
            <div title="South Title" data-options="region:'south'" style="height:100px;"></div>
            <div title="East" data-options="region:'east'" style="width:100px;"></div>
            <div title="West" data-options="region:'west'" style="width:100px;"></div>
            <div title="center title" data-options="region:'center'" style="padding:5px;background:#eee;"></div>
        </div>
        <script>
           $('#layout').layout()
        </script>
    2019-07-17 19:07:47
    赞同 展开评论 打赏
问答分类:
问答地址:
相关产品:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载