Html 如何在extjs按钮中居中放置图标?
我有一个简单的按钮,但我不能使图标居中Html 如何在extjs按钮中居中放置图标?,html,css,extjs,Html,Css,Extjs,我有一个简单的按钮,但我不能使图标居中 { xtype: 'button', width: 150, height: 150, cls: 'startbutton' } css: 此图像为72x72像素。我认为,您需要: 您不使用标准物品的原因是: icon: '', iconAlign: 'center' @sha:仅供参考,此帖子存在一个潜在问题。。。iconAlign没有值“center”。Ext JS 4.2.1。 .startbutton {
{
xtype: 'button',
width: 150,
height: 150,
cls: 'startbutton'
}
css:
此图像为72x72像素。我认为,您需要:
您不使用标准物品的原因是:
icon: '',
iconAlign: 'center'
@sha:仅供参考,此帖子存在一个潜在问题。。。iconAlign没有值“center”。Ext JS 4.2.1。
.startbutton {
background-position: center center;
background-image: url(Camera.png) !important;
}
icon: '',
iconAlign: 'center'