0
如何删除火花按钮中的额外空间?删除火花按钮中的额外空间
a busy cat http://s4d3.turboimagehost.com/t/11861499_button.png
所以我需要的图像或文字与按钮
如何删除火花按钮中的额外空间?删除火花按钮中的额外空间
a busy cat http://s4d3.turboimagehost.com/t/11861499_button.png
所以我需要的图像或文字与按钮
您需要定义一个新的皮肤为您的按钮的左边框正好开始。 CSS:
s|Button {
skinClass:ClassReference("skins.MySkin");
}
MySkin.mxml将是Flex\frameworks\projects\spark\src\spark\skins\spark\ButtonSkin.mxml
副本然后你就可以更改值left="10"
为labelDisplay
或添加BitmapImage
称为iconDisplay
并设置其left
值。
科迪亚克,非常感谢! – Max
对于标签,它工作正常!但对于图标不是:( 我有:
and skin:s:BitmapImage> 我还有一个空格 – Max您是否已将BitmapImage的id设置为“labelDisplay”? – Kodiak