50,545
社区成员
发帖
与我相关
我的任务
分享
Ext.onReady(function() {
var items = [];
/**
* Basic panel
*/
items.push({
xtype: 'panel',
x: 50, y: 100,
width : 150,
height: 150,
title: 'Basic Panel',
animCollapse: true,
bodyPadding: 5,++++++++++++++++++这个
html : 'Some content',
collapsible: true
});
。。。。。。
items.push({
xtype: 'form',
id : 'form-widgets',
title: 'Form Widgets',
x: 50, y: 260,
width : 630,
height: 700,
frame: true,
bodyPadding: '10 20',******************************************这个
defaults: {
anchor : '98%',
msgTarget : 'side',
allowBlank: false //不允许为空
},
。。。。。。。
var tabCfg = {
xtype: 'tabpanel',
width : 310,
height: 150,
activeTab: 0,
defaults: {
bodyStyle: 'padding:10px;'*************************************这个
},
items: [
{
title: 'Tab 1',
html : 'Free-standing tab panel'
},
{
title : 'Tab 2',
closable: true
},
{
title : 'Tab 3',
closable: true
}
]
};
document.getElementsByTagName('body')[0].style.padding = '10px'; //是这个意思吗?