下面的代码只会更改面板周围边框的颜色,而不会更改面板本身的颜色.
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'
}]
});
Run Code Online (Sandbox Code Playgroud)