0

我正在创建一个弹性表单,其代码如下:-
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:Form>
<s:layout>
<s:FormLayout gap="5"/>
</s:layout>
<s:FormItem label="First Name : ">
<s:TextInput id="fn" />
</s:FormItem>
<s:FormItem label="Last Name : ">
<s:TextInput id="ln" />
</s:FormItem>
<s:FormItem label="Email Address :">
<s:TextInput id="ea"/>
</s:FormItem>
<s:FormItem label="Re-enter Email Address :">
<s:TextInput id="rea"/>
</s:FormItem>
<s:FormItem label="Password :">
<s:TextInput id="pw" displayAsPassword="true" />
</s:FormItem>
<s:FormItem label="Re Enter Password :">
<s:TextInput id="rpw" displayAsPassword="true" />
</s:FormItem>
<s:FormItem label="Security Question">
<s:DropDownList>
<s:ArrayList>
<fx:String>Mother's maiden name?</fx:String>
<fx:String>Birthplace?</fx:String>
<fx:String>Pet's name?</fx:String>
<fx:String>Favourite destination</fx:String>
</s:ArrayList>
</s:DropDownList>
</s:FormItem>
<s:FormItem>
<s:Button label="Submit" click="abc()" />
</s:FormItem>
</s:form>

现在我有一个问题,就是如何增加下拉菜单的宽度,使它看起来很棒。如何根据内容改变宽度?

4

1 回答 1

0

你可以试试

<Component width="100%" />

或者

<Component left="0" right="0" />

这取决于你的目的,

于 2012-10-22T04:56:39.147 回答