如何使用 Sencha Touch 2 更改警告框按钮的颜色?这取决于基色,在我的例子中是黑色。按钮看起来像标签,因为整个警告框都是黑色的。感谢您的帮助。
最佳答案
如果您使用 Ext.Msg.alert
或 Ext.Msg.confirm
或 Ext.Msg.show
方法,您可以应用以下样式改变按钮颜色
.x-msgbox .x-button {
background-image: none !important;
background-color : red !important; // red will be the button color
}
关于css - 更改 Sencha 中警告框的按钮颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17140428/