求助!!!!!
初学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添加背景图片 谁给写个简单的实例
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
});