简体   繁体   English

如何在Flex 3中创建垂直按钮

[英]How to create a vertical button in Flex 3

I'd like to create a button that is basically a rotated 90's so that it is in effect a vertically aligned button. 我想创建一个基本上旋转90年代的按钮,这样它实际上就是一个垂直对齐的按钮。 So that the the text is like that of a book spine. 这样文本就像书脊一样。

Thanks in advance. 提前致谢。

You need to set the rotation property of the button... so the mxml would be something like: 您需要设置按钮的rotation属性...,因此mxml类似于:

<mx:Button id="myButton" label="CLICK ME"  rotation="90" />

Edit 编辑

As a side note you will probably need to embed the font you are using if you want the text to be visible after the component has been rotated 附带说明一下,如果您希望在旋转组件后可以看到文本,则可能需要嵌入使用的字体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM