【问题标题】:Last line alignment for textArea in Flex 3Flex 3中textArea的最后一行对齐
【发布时间】:2012-09-04 10:19:11
【问题描述】:
txtArea.setStyle("textAlign","justify");

显示类似的文本

textSample textSample textSample textSample textSample textSample textSample textSample
textSample textSample textSample textSample textSample textSample textSample textSample
textSample textSample textSample textSample textSample textSample textSample textSample
textSample

最后一行在文本区域中没有对齐。是否可以对齐 flex 3 中的最后一行。请帮助...

【问题讨论】:

    标签: css actionscript-3 flash apache-flex


    【解决方案1】:

    您可以使用textAlignLast 属性:

    txtArea.setStyle("textAlign", "justify");
    txtArea.setStyle("textAlignLast", "justify"); /*or "center", "left", "right"*/
    

    【讨论】:

    猜你喜欢
    • 2013-09-15
    • 1970-01-01
    • 2019-01-05
    相关资源
    最近更新 更多