ExtJs学习笔记(17)_table布局2010-11-16 cnblogs yjmyzztable布局顾名思义,就是象table表格一样的布局
<script type="text/javascript">
Ext.onReady(function() {
var win = new Ext.Window({
title: "table Layout",
height: 210,
width: 290,
plain: true,
bodyStyle: "padding:15px",
layout: "table",
layoutConfig: {
columns: 3
},
defaults:{width:80,height:50},
items:
[
{ html: "1,1(rowspan=3)", rowspan: 3 ,height:150},
{ html: "1,2"},
{ html: "1,3" },
{ html: "2,2(colspan=2)", colspan: 2, width: 160 },
{ html: "3,2" },
{ html: "3,3" }
]
});
win.show();
});
</script>