下面的代码只改变面板周围边框的颜色,而不是面板本身。
var overlay = Ext.Viewport.add({
xtype: 'panel',
centered: true,
style:'background-color: transparent;',
modal: {
style: 'opacity: 0'
},
hideOnMaskTap:true,
width:'20%',
height: '50%',
styleHtmlContent:true,
items:[{
xtype:'button',
test:'hey',
cls:'notrans',
style: 'opacity: 1'
}]
});