我正在尝试将图像应用到 xtype='button' 但是当我这样做时,我的按钮看起来像这样
我怎样才能让这个图像填充这个按钮?
代码(sencha touch 2 js):
{
xtype: 'button',
width: 140,
height: 60,
margin: 10,
right: 20,
text: 'Enter',
html: '<img src="resources/images/Dbutton.png"/>'
}