如何使Flex中的文本对齐(文本对齐选项)
如果我对您的理解正确,则希望段落的文本在左右两边都齐平,这意味着您希望将textAlign样式设置为TextAlign.JUSTIFY(实际上只是一个静态成员,它映射到字符串'justify'。)希望能有所帮助。
简短的问题,简短的答案:
myLabel.setStyle('textAlign', 'left');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.