ExtJs学习笔记(14)_Column布局
ExtJs学习笔记(14)_Column布局
<div class="postBody">Column布局有点象传统html中的table的td,但是也有不同的地方:
先看下代码
<div class="cnblogs_code"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><scripttype="text/javascript">
Ext.onReady(function(){
varwin=newExt.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>
页:
[1]