シンプルなボタンがありますが、アイコンを中央に配置できません。
{
xtype: 'button',
width: 150,
height: 150,
cls: 'startbutton'
}
css:
.startbutton {
background-image: url(Camera.png) !important;
}
この画像は72x72ピクセルです。
私は、あなたは背景位置が必要だと思います:
.startbutton {
background-position: center center;
background-image: url(Camera.png) !important;
}
標準的なものを使用していない理由はありますか?
icon: '',
iconAlign: 'center'