zoukankan      html  css  js  c++  java
  • layout(布局)组件

    一、依赖于 Panel(面 板)组件和 resizable(调整大小)组件。

    二、class加载方式

       <div id="box" class="easyui-layout" style="height: 600px; 400px">
        <div data-options="region:'north'" title="north" style="height: 100px;"></div>
        <div data-options="region:'south'" title="south" style="height: 100px;"></div>
        <div data-options="region:'west'" title="west" style=" 100px"></div>
        <div data-options="region:'east'" title="east" style=" 100px"></div>
        <div data-options="region:'center'" title="center"></div>
       </div>

    三、js加载方式

      <div id="box" style="height: 600px; 400px">
      <div data-options="region:'north',maxHeight:'200'"
        border='false'
        iconCls='icon-add'
        title='north'
        href="index.html"
        collapsible="false"
        style ="height: 100px;"></div>
      <div data-options="region:'south'" title="south" style="height: 100px;"></div>
      <div data-options="region:'west'" title="west" style=" 100px"></div>
      <div data-options="region:'east'" title="east" style=" 100px"></div>
      <div data-options="region:'center'" title="center"></div>
        </div>
      $(function () {
        $("#box").layout({
        //属性
          fit:true,//如果设置为 true,布局组件将自适应父容 易。当使用 body 标签创建布局的时候,整 个页面会自动最大。默认为 false。值为boolean
        });
        //方法
          console.log($('#box').layout('panel', 'north'));//返回指定面板
          $('#box').layout('collapse', 'north');//设置指定面板折叠,参数可用值有 : 'north','south','east','west'。
          $('#box').layout('expand', 'north');//设置指定面板展开,参数可用值有 : 'north','south','east','west'。
          $(document).click(function () { $('#box').layout().css('display', 'block'); $('#box').layout('resize'); });////重新调整布局和大小
          $('#box').layout('add', { title : 'center title', region : 'center', });//新增一个面板
          $('#box').layout('remove', 'north');////删除指定面板
        })

  • 相关阅读:
    系统编码、文件编码与python系统编码
    python2判断编码格式
    android: 对apk进行系统签名
    android: 对普通的apk应用进行签名
    android studio: 设置单条注释不换行
    Gradle: Could not determine the dependencies of task ':app:processDebugResources'解决(转)
    android Dialog: 去除dialog 顶部 蓝色的线
    android:Error:” ” is not translated in “en” (English) [MissingTranslation]处理方法(转)
    android: 通过Intent筛选多种类型文件
    GIt: git rebase 和 git merge 的区别 (转)
  • 原文地址:https://www.cnblogs.com/Alaic2052243080/p/11588087.html
Copyright © 2011-2022 走看看