- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <link rel="stylesheet" type="text/css" href="../../../../resources/css/ext-all.css" />
- <title>登陆程序</title>
- <style type="text/css">
-
- .contain{
- width:100%;
- height:100%;
- top:0;
- left:0;
- }
- .center {
- position:absolute;
- top:30%;
- left:43%;
- text-align:left;
- }
-
-
- </style>
- <script type="text/javascript" src="../../../../adapter/ext/ext-base.js">
- </script>
- <script type="text/javascript" src="../../../../ext-all.js">
- </script>
- <script type="text/javascript" src="../../../../build/locale/ext-lang-zh_CN.js">
- </script>
- <script type="text/javascript">
-
- Ext.onReady(function(){
-
- var _panel = new Ext.Panel({
- title:"登 陆",
- frame:true,
- width:260,
- height:130,
- layout:"form",
- labelWidth:45,
- defaults:{xtype:"textfield" , width:180},
- items:[{
- fieldLabel:"账号"
- },{
- fieldLabel:"密码"
- }],
- buttons:[{
- text:"确 定"
- },{
- text:"取 消"
- }]
- }) ;
-
- _panel.applyToMarkup(Ext.DomHelper.append(Ext.getBody(), {
- tag:"div",
- cls:"contain",
- cn:[{
- tag:"div",
- cls:"center"
- }]
- } , true).child("div")) ;
-
- }) ;
-
- </script>
- </head>
-
- <body>
- </body>
- </html>
其中需要主要包引入的顺序与其的相对路径
|