Ext Js技术之面板的初步使用

来源:互联网 发布:php class 实例 编辑:程序博客网 时间:2024/05/22 06:49

效果显示:


代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 


"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Hello Extjs4.2</title>
<link href="../ExtJS4.2/resources/css/ext-all-neptune.css" rel="stylesheet">
<!-- <script src="../ExtJS4.2/locale/ext-lang-zh_CN.js"></script> -->
<script src="../ExtJS4.2/ext-all.js"></script>
<script type="text/javascript">




Ext.onReady(function(){
new Ext.Panel({
renderTo:"hello",
title:"面板头部header",
width:300,
height:200,
html:'<h1>面板主区域</h1>',
tbar:[{text:'顶部工具栏topToolbar'}],
bbar:[{text:'底部工具栏bottomToolbar'}],
buttons:[{text:"按钮位于footer"}]
});
});






</script>
</head>
<body>


<div id="hello"></div>
</body>
</html>

0 0
原创粉丝点击