布局之accordion布局

<HTML>
<HEAD>
	<TITLE>使用EXT输出HelloWorld</TITLE>
	<!-- 导入extjs配置 … ... -->
	<link rel="stylesheet" type="text/css" href="./../ext/resources/css/ext-all.css"/>
	<script type="text/javascript" src="./../ext/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="./../ext/ext-all.js"></script>
	<script type="text/javascript">
		Ext.onReady(function(){
			Ext.BLANK_IMAGE_URL='./../ext/resources/images/default/s.gif';
			var panel = new Ext.Panel({
				width: 600,
				height: 500,
				title: '父面板',
				layout: 'accordion',
				renderTo: 'form',
				items:[{
					title: '面板一',
					items:[{title: '子面板1'},{title: '子面板2'},{title: '子面板3'}]
				},{
					title: '面板二',
					items:[{title: '子面板1'},{title: '子面板2'},{title: '子面板3'}]

				},{
					title: '面板三'
				}]
			});
			 	
		});
	</script>
</HEAD>
<body id="form">
</body>
</HTML>
 

你可能感兴趣的:(JavaScript,html,css,ext)