博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
operamasks—omBorderLayout布局
阅读量:6463 次
发布时间:2019-06-23

本文共 3110 字,大约阅读时间需要 10 分钟。

<!DOCTYPE html> <html xmlns="">

<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 {             width: 100%;             height: 300px;         }

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

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

        #expand-top-bottom {             width: 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",                 

    width:150              

   },{                   

  id:"east-panel",               

    header:false,                   

  region:"east",                 

 width: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,                    

width:150                 },{                    

id:"east-panel",                   

header:false,                    

region:"east",                   

width: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",                    

width:150                 },{                    

id:"east-panel",                   

header:false,                    

region:"east",                    

expandToTop:true,                   

width: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,                    

width:150                 },{                    

id:"east-panel",                   

header:false,                    

expandToBottom:true,                    

expandToTop:true,                    

region:"east",                   

width: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>

效果如下:

转载于:https://www.cnblogs.com/jason-davis/p/4009868.html

你可能感兴趣的文章
linux 脚本map,Linux Shell Map的用法详解
查看>>
如何在linux系统下配置共享文件夹,如何在windows和Linux系统之间共享文件夹.doc
查看>>
linux操作系统加固软件,系统安全:教你Linux操作系统的安全加固
查看>>
linux中yum源安装dhcp,24.Linux系统下动态网络源部署方法(dhcpd)
查看>>
ASP.NET性能优化之分布式Session
查看>>
转载:《TypeScript 中文入门教程》 16、Symbols
查看>>
C#技术------垃圾回收机制(GC)
查看>>
漫谈并发编程(三):共享受限资源
查看>>
【转】github如何删除一个仓库
查看>>
Linux系统编程——进程调度浅析
查看>>
大数据Lambda架构
查看>>
openCV_java 图像二值化
查看>>
状态模式
查看>>
删除CentOS / RHEL的库和配置文件(Repositories and configuraiton files)
查看>>
VC++获得微秒级时间的方法与技巧探讨(转)
查看>>
HDOJ-1010 Tempter of the Bone
查看>>
MySQL my.cnf参数配置优化详解
查看>>
JavaNIO基础02-缓存区基础
查看>>
日本开设无人机专业,打造无人机“人才市场”
查看>>
190行代码实现mvvm模式
查看>>