ExtJs布局之border

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ExtJs布局之border相关的知识,希望对你有一定的参考价值。

<!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: {
						collapsible: true
					},
					layout: ‘border‘,

					items: [{
						title: ‘north Panel‘,
						height: 50,
            html: ‘上边‘,
            region: ‘north‘
					},{
						title: ‘south Panel‘,
						height: 50,
            html: ‘下边‘,
            region: ‘south‘
					},{
						title: ‘west Panel‘,
						width: 100,
            html: ‘左边‘,
            region: ‘west‘
					},{
						title: ‘east Panel‘,
						width: 100,
            html: ‘右边‘,
            region: ‘east‘
					},{
						title: ‘main content‘,
            html: ‘中间‘,
            region: ‘center‘
					}]
				});
			});
    </script>
</head>
<body>
    <div id=‘form‘></div>
		<div id=‘form1‘></div>


</body>
</html>

  技术分享

以上是关于ExtJs布局之border的主要内容,如果未能解决你的问题,请参考以下文章

ExtJs - 边框布局 - 拆分器配置

Extjs6——用extjs6.0写一个简单页面

ExtJs常用布局--layout详解(含实例)

布局运行失败 Extjs

Extjs4 常用布局总结

ExtJS中layout的12种布局风格