六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 66|回复: 0

ExtJS 入门学习之 window与panel篇

[复制链接]

升级  18%

21

主题

21

主题

21

主题

秀才

Rank: 2

积分
77
 楼主| 发表于 2013-2-7 15:07:10 | 显示全部楼层 |阅读模式
extjs的语法很像java,对于这些组件的使用基本都是面向对象的。今天这部分内容,和swing 非常相似。
现亮一个window给大家看看:
<div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; width: 98%; padding-top: 4px; background-color: #eeeeee; border: #cccccc 1px solid;"><! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" >
< html >
    
< head >
        
< meta  http-equiv ="Content-Type"  content ="text/html; charset=UTF-8"   />
         
< link  rel ="stylesheet"  type ="text/css"  href ="ext/resources/css/ext-all.css" >
        
< script  type ="text/javascript"  src ="ext/ext-base.js" ></ script >
        
< script  type ="text/javascript"  src ="ext/ext-all.js" ></ script >
        
< title > 学习ExtJS之Panel </ title >
        
< script  type ="text/javascript" >
            Ext.onReady(
function ()
            {
                
var  win  =   new  Ext.Window(
                {
                    title:
" 标题 " ,
                    width:
300 ,
                    height:
200 ,
                    html:'
< h1 > hello,my name is  274 !</ h1 > '

                });            
                win.show();
            });                
            
</ script >
    
</ head >
    
< body >
    
</ body >
</ html >
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表