码迷,mamicode.com
首页 > Web开发 > 详细

ExtJs布局之table

时间:2016-03-21 22:54:51      阅读:299      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html>
<head>
    <title>ExtJs</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="ExtJs/packages/ext-theme-crisp/build/resources/ext-theme-crisp-all.css">
		<script type="text/javascript" src="ExtJs/ext-all.js"></script>
		<script type="text/javascript" src="ExtJs/bootstrap.js"></script>
		<script type="text/javascript" src="ExtJs/packages/ext-theme-crisp/build/ext-theme-crisp.js"></script>

    <script type="text/javascript">
			Ext.onReady(function() {
				Ext.create(‘Ext.panel.Panel‘,{
					title: ‘Ext.layout.container.Table‘,
					frame: true,
					height: 600,
					width: 800,
					renderTo: Ext.getBody(),
          defaults: {
						bodyStyle: ‘background-color: #FEE300;‘,
						height: 150,
            width: 150,
						frame: true
					},
					layout: {
            type: ‘table‘,
            columns: 4
          },

					items: [{
						title: ‘子面板一‘,
						width: 450,
            colspan: 3
					},{
						title: ‘子面板二‘,
            rowspan: 2,
						height: 300
					},
          {title: ‘子面板三‘},
          {title: ‘子面板四‘},
          {title: ‘子面板五‘}
        ]
				});
			});
    </script>
</head>
<body>
    <div id=‘form‘></div>
		<div id=‘form1‘></div>


</body>
</html>

  技术分享

ExtJs布局之table

标签:

原文地址:http://www.cnblogs.com/aguncn/p/5304097.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!