zoukankan      html  css  js  c++  java
  • operamasks—omBorderLayout布局

    <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml">

    <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

        <title></title>   

      <script src="js/jquery.min.js"></script>

        <script src="js/operamasks-ui.min.js"></script>  

       <script src="js/om-borderlayout.js"></script>

        <link href="css/om-apusic.css" rel="stylesheet" />  

       <style>  

    #expand-none {             100%;             height: 300px;         }

            #expand-bottom {             100%;             height: 300px;         }

            #expand-top {             100%;             height: 300px;         }

            #expand-top-bottom {             100%;             height: 300px;         }   

      </style>   

      <script type="text/javascript">  

           $(document).ready(function() {   

              $('#expand-none').omBorderLayout({

                   panels:[{               

                  id:"center-panel",           

                  header:false,           

                  region:"center"       

              },{                  

       id:"west-panel",              

         title:"west",                  

       region:"west",                 

        150              

       },{                   

      id:"east-panel",               

        header:false,                   

      region:"east",                 

     150                

    },{                    

    id:"north-panel",                 

     title:"north",                    

    region:"north",                   

    height:80                

    },{                    

    id:"south-panel",                 

     title:"south",                    

    region:"south",                    

    height:80                 }]            

    });            

    $('#expand-bottom').omBorderLayout({               

    panels:[{                    

    id:"center-panel",                 

     header:false,                    

    region:"center"                

    },{                    

    id:"west-panel",                 

     title:"west",                    

    region:"west",                    

    expandToBottom:true,                    

    150                 },{                    

    id:"east-panel",                   

    header:false,                    

    region:"east",                   

    150                 },{                    

    id:"north-panel",                   

    title:"north",                    

    region:"north",                   

    height:80                

    },{                    

    id:"south-panel",                   

    title:"south",                    

    region:"south",                    

    height:80                 }]            

    });            

    $('#expand-top').omBorderLayout({               

    panels:[{                    

    id:"center-panel",                   

    header:false,                    

    region:"center"                

    },{                    

    id:"west-panel",                 

     title:"west",                    

    region:"west",                    

    150                 },{                    

    id:"east-panel",                   

    header:false,                    

    region:"east",                    

    expandToTop:true,                   

    150                

    },{

                       

    id:"north-panel",                   

    title:"north",                    

    region:"north",                   

    height:80                

    },{                    

    id:"south-panel",                   

    title:"south",                    

    region:"south",                    

    height:80                

    }]            

    });            

    $('#expand-top-bottom').omBorderLayout({               

    panels:[{                    

    id:"center-panel",                   

    header:false,                    

    region:"center"                 },{                    

    id:"west-panel",                   

    title:"west",                    

    region:"west",                    

    expandToBottom:true,                    

    expandToTop:true,                    

    150                 },{                    

    id:"east-panel",                   

    header:false,                    

    expandToBottom:true,                    

    expandToTop:true,                    

    region:"east",                   

    150                

    },{                    

    id:"north-panel",                   

    title:"north",                    

    region:"north",                   

    height:80                

    },{                    

    id:"south-panel",                   

    title:"south",                    

    region:"south",                    

    height:80                

    }]            

    });        

    });    

    </script>

    </head>

    <body>      

    <h3>默认左边两边的面板都不拉伸,上下两个面板宽度为整个layout的100%。</h3>    

    <div id="expand-none">        

    <div id="center-panel">center</div>        

    <div id="east-panel">east</div>        

    <div id="west-panel">west</div>        

    <div id="north-panel">north</div>        

    <div id="south-panel">south</div>    

    </div>

        <h3>设置左边的面板拉伸至底部</h3>    

    <div id="expand-bottom">        

    <div id="center-panel">center</div>        

    <div id="east-panel">east</div>        

    <div id="west-panel">west</div>        

    <div id="north-panel">north</div>        

    <div id="south-panel">south</div>     </div>

        <h3>设置右边的面板拉伸至顶部</h3>    

    <div id="expand-top">        

    <div id="center-panel">center</div>        

    <div id="east-panel">east</div>        

    <div id="west-panel">west</div>        

    <div id="north-panel">north</div>        

    <div id="south-panel">south</div>     </div>

        <h3>设置左右两个面板拉伸至顶部和底部</h3>    

    <div id="expand-top-bottom">        

    <div id="center-panel">center</div>        

    <div id="east-panel">east</div>        

    <div id="west-panel">west</div>        

    <div id="north-panel">north</div>        

    <div id="south-panel">south</div>    

    </div>      

    </body>

    </html>

    效果如下:

  • 相关阅读:
    PHP 求多个数组的笛卡尔积,适用于求商品规格组合 【递归思想, 类似广度优先搜索】【原创】
    CCF推荐期刊会议
    SCI分区
    值和指针接收者的区别
    程序员练级攻略
    保险
    golang 有缓冲channel和无缓冲channel
    后台学习路线
    golang之反射
    atomic和mutex
  • 原文地址:https://www.cnblogs.com/jason-davis/p/4009868.html
Copyright © 2011-2022 走看看