Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何删除火花按钮中的额外空间?
(来源:turboimagehost.com)
所以我需要图像或文本完全从按钮的左边框开始
您需要为您的 Button 定义一个新的皮肤。CSS:
s|Button { skinClass:ClassReference("skins.MySkin"); }
MySkin.mxml 将是一个副本Flex\frameworks\projects\spark\src\spark\skins\spark\ButtonSkin.mxml
Flex\frameworks\projects\spark\src\spark\skins\spark\ButtonSkin.mxml
然后,您可以更改或添加被调用对象的left="10"值并设置其值。labelDisplayBitmapImageiconDisplayleft
left="10"
labelDisplay
BitmapImage
iconDisplay
left