求助!!!!!
初学extjs ext.panel 面板设置背景图片有些不懂(主要是CSS格式不知道怎么写!)
Ext.onReady(function(){
var top = new Ext.Panel({
region: "north",
//title: "LOGO",
height: 120,
html: "这里放LOGO",
});
});
为panel添加背景图片 谁给写个简单的实例
初学extjs ext.panel 面板设置背景图片有些不懂(主要是CSS格式不知道怎么写!)
Ext.onReady(function(){
var top = new Ext.Panel({
region: "north",
//title: "LOGO",
height: 120,
html: "这里放LOGO",
});
});
为panel添加背景图片 谁给写个简单的实例
解决方案 »
- 新闻发布系统数据库设计
- Spring环境下怎么把一个变量放在ServletContext里
- 求助:An attempt by a client to checkout a Connection has timed out.
- getParamament()和getAttriubutiue()的区别
- struts中的标签找不到资源文件是怎么回事?
- JSON对象可以用Hibernate存储么
- 关于weblogic8.1中数据库连接池的设置,请用过的人进来看看
- Resin配置的问题送100分,路过的来看看.UP有分.
- Sun的j2ee服务器安装失败,显示如下,求救!
- spring编程事务。
- java连接sqlserver数据库,用哪个日期类型好
- 跪求高手解决问题!!!!
new Ext.Panel({
renderTo : "panel1",
title : "面板头部header",
width : 300,
height : 200,
html : '<h1>面板主区域</h1>',
tbar : [{
text : '顶部工具栏topToolbar'
}],
bbar : [{
text : '底部工具栏bottomToolbar'
}],
buttons : [{
text : "按钮位于footer"
}]
});
}
function Panel2() {
new Ext.Panel({
renderTo : "panel2",
title : "hello",
width : 300,
height : 200,
html : '<h1>Hello,easyjf open source!</h1>',
tbar : [{
pressed : true,
text : '刷新'
}]
});
}
function Panel3() { new Ext.Panel({
renderTo : "panel3",
title : "hello",
width : 300,
height : 200,
html : '<h1>Hello,easyjf open source!</h1>',
tools : [{
id : "save"
}, {
id : "help",
handler : function() {
Ext.Msg.alert('help', 'please help me!');
}
}, {
id : "close"
}],
tbar : [{
pressed : true,
text : '刷新'
}]
});
}function Panel4() {
new Ext.Panel({
renderTo : "panel4",
title : "hello",
width : 300,
height : 200,
html : '<h1>Hello,easyjf open source!</h1>',
tbar : [new Ext.Toolbar.TextItem('工具栏:'), {
xtype : "tbfill"
}, {
pressed : true,
text : '添加'
}, {
xtype : "tbseparator"
}, {
pressed : true,
text : '保存'
}]
});
}
呵呵,直接给panenl加背景,我也不会~
var test = new Ext.Panel( {
region : 'north',
border : false,
html : '<div style="background:url(test.gif) repeat-x; height:78px;"></div>',
height : 80
});