ExtJs学习笔记(14)_Column布局

 

ExtJs学习笔记(14)_Column布局

Column布局有点象传统html中的table的td,但是也有不同的地方:

 

先看下代码

<!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--> < scripttype = " text/javascript " >
Ext.onReady(
function (){
var win = new Ext.Window({
title:
" ColumnLayout " ,
height:
300 ,
width:
400 ,
plain:
true ,
layout:
' column ' ,
items:[{
title:
" width=50% " ,
columnWidth:
0.5 ,
html:
" width=(容器宽度-容器内其它组件固定宽度)*50% " ,
height:
200
},
{
title:
" width=250px " ,
width:
200 ,
height:
100 ,
html:
" 固定宽度为250px "
}
]
});
win.show();
});
< / script>

效果图:


对于一下:

<tr>

<td width="50%"></td>

<td width="30px"><td>

<td></td>

</tr>

在table中,这里第一列会占到整个行的50%的宽度,而在ExtJs的column布局中,百分比是指(容器宽度-有固定width值组件的宽度)后,再乘相应百分比得到的宽度

欢迎加入:http://www.itpob.cn/bbs

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值