不是如何我可以在标签panel..My网格的中心增加电网采取的利润率,甚至style:{margintop:'10px'}
高度和宽度:如何添加网格标签面板
这里是我的网格: -
{
title: 'Credit Card',
id:'credit_tab',
html:'html',
items:[{
xtype:'grid',
title: 'Simpsons',
resizable: true,
// margins:'20 20 20 20',
style:{marginLeft:'200px',marginTop:'30px'},
//store: Ext.data.StoreManager.lookup('simpsonsStore'),
columns: [
{ header: 'Name', dataIndex: 'name' },
{ header: 'Email', dataIndex: 'email', flex: 1 },
{ header: 'Phone', dataIndex: 'phone' }
],
// height: 100,
width: 100,
// renderTo:Ext.getBody()
}]
}
使用['center'(https://docs.sencha.com/extjs/6.0/6.0.0-classic/#!/api/Ext.layout.container.Center)布局,看我的答案。 – Greendrake