<!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 {             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>

效果如下:

operamasks—omBorderLayout布局的更多相关文章

  1. operamasks—omGrid/omBorderLayout的混合使用

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs&q ...

  2. 前端框架 EasyUI (2)页面布局 Layout

    在 Web 程序中,页面布局对应用程序的用户体验至关重要. 在一般的信息管理类的 Web 应用程序中,页面结构通常有一个主工作区,然后在工作区上下左右靠近边界的区域设置一些边栏,用于显示信息或放置一些 ...

  3. TODO:Laravel 使用blade标签布局页面

    TODO:Laravel 使用blade标签布局页面 本文主要介绍Laravel的标签使用,统一布局页面.主要用到到标签有@yield,@ stack,@extends,@section,@stop, ...

  4. CSS HTML元素布局及Display属性

    本篇文章主要介绍HTML的内联元素.块级元素的分类与布局,以及dispaly属性对布局的影响. 目录 1. HTML 元素分类:介绍内联元素.块级元素的分类. 2. HTML 元素布局:介绍内联元素. ...

  5. 谈谈一些有趣的CSS题目(六)-- 全兼容的多列均匀布局问题

    开本系列,谈谈一些有趣的 CSS 题目,题目类型天马行空,想到什么说什么,不仅为了拓宽一下解决问题的思路,更涉及一些容易忽视的 CSS 细节. 解题不考虑兼容性,题目天马行空,想到什么说什么,如果解题 ...

  6. Xamarin+Prism开发详解五:页面布局基础知识

    说实在的研究Xamarin到现在,自己就没设计出一款好的UI,基本都在研究后台逻辑之类的!作为Xamarin爱好者,一些简单的页面布局知识还是必备的. 布局常见标签: StackLayout Abso ...

  7. 界面设计技法之css布局

    css布局之于页面就如同ECMAScript之于JS一般,细想一番,html就如同语文,css就如同数学,js呢,就是物理,有些扯远,这里就先不展开了. 回到主题,从最开始的css到如今的sass(l ...

  8. Android如何制作漂亮的自适布局的键盘

    最近做了个自定义键盘,但面对不同分辨率的机型其中数字键盘不能根据界面大小自已铺满,但又不能每种机型都做一套吧,所以要做成自适应,那这里主讲思路. 这里最上面的titlebar高度固定,下面输入的金额高 ...

  9. 页面布局class常见命名规范

    头:header 内容:content/container 尾:footer 导航:nav 侧栏:sidebar 栏目:column 页面外围控制整体布局宽度:wrapper 左右中:left rig ...

随机推荐

  1. 机器学习-Probabilistic interpretation

    Probabilistic interpretation,概率解释  解释为何线性回归的损失函数会选择最小二乘 表示误差,表示unmodeled因素或随机噪声,真实的y和预测出来的值之间是会有误差的, ...

  2. Android EditText 输入金额(小数点后两位)

    EditText edit = new EditText(context); InputType.TYPE_NUMBER_FLAG_DECIMAL //小数点型 InputType.TYPE_CLAS ...

  3. php中字符与字节的区别

    字符: 字符是可使用多种不同字符方案或代码页来表示的抽象实体.例如,Unicode UTF-16 编码将字符表示为 16 位整数序列,而 Unicode UTF-8 编码则将相同的字符表示为 8 位字 ...

  4. QQ感叹号是什么鬼?原来是服务器波动,腾讯官方来辟谣了

    今天晚上很多网友在用QQ发送消息的时候发现,自己发送的消息一直是感叹号❗到底是怎么回事呢?是消息都发不出去了吗?马浩周通过手机测试后发现,其实消息是可以发出去的,而官方手机QQ出来已经通知了,是服务器 ...

  5. RestTemplate接收HashMap变为LinkedHashMap,RestTemplate接收数据后转成json数据出现反斜杠

    使用postForObject方法远程调用接口,正常会返回List<HashMap>,然而实际上却返回List<LinkedHashMap>,同时将此数据进行json转换,变成 ...

  6. Log.d 日志调试查看(所有平台)

    https://www.cnblogs.com/onechen/p/6436748.html http://docwiki.embarcadero.com/Libraries/Berlin/en/FM ...

  7. Syslinux编译环境配置简要步骤

    由于毕业设计要做一个加密U盘的LINUX,需要修改一sysylinux引导程序,在网上很少有关于syslinux编译环境配置的文章,在此简要总结一下,发出来共享. 需要的软件: 1.  vmware ...

  8. GPS坐标转化距离(短距离模型公式)

    下面是C#计算方法: class Program { const double EARTH_RADIUS = 6378.137; static void Main(string[] args) { d ...

  9. mysql图形化工具获取表的源码

    打开数据库,选择要查看的表,点击右键>对象信息>DDL:

  10. 解决java web项目导入后出现的问题 ---cannot be read or is not a valid ZIP file

    导入以前的web项目后会出现以下三个错误: 1. Archive for required library: ‘WebContent/WEB-INF/lib/readme.txt’ in projec ...