尝试在 Flex 中的标签旁边放置一个文本框

发布于 2024-09-04 05:17:15 字数 69 浏览 2 评论 0原文

我正在尝试制作一个简单的表单,但是当我在标签后面放置一个文本输入框时,它会出现在下一行中..如何使文本输入框放置在标签旁边?

i am trying to make a simple form but when i place a textInput box after a Label it comes in the next line..how do i make the text input box be placed besides the Label?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

计㈡愣 2024-09-11 05:17:15
<mx:Form>
        <mx:FormItem label="Name : ">
        <mx:TextInput />
    </mx:FormItem>
</mx:Form>

嘿,你也可以使用这个,否则使用 Canvas 并使用左右属性将项目放置在其中

,是

<canvas>
    <Label left="0"/>
    <textinput right="0"/>
</canvas>

的,最后 是最终的解决方案,但是在页面上放置各种标签有点麻烦麻烦,所以尝试使用画布,因为它是一个轻量级的容器,并且在开发某种表单时,所以使用

标签

我希望它会有一些帮助
TC

<mx:Form>
        <mx:FormItem label="Name : ">
        <mx:TextInput />
    </mx:FormItem>
</mx:Form>

Hey u can use this also, otherwise use Canvas and place item in that using left and right proprtites

like

<canvas>
    <Label left="0"/>
    <textinput right="0"/>
</canvas>

and Yes finally the <hbbox> is the ultimate solution, but putting various tags on a page is bit cuimbersome, so try using canvases as it's a light weight conatiner, and when devbeloping some form, so use <form> tag

I hope it will be of some help
tc

ぃ弥猫深巷。 2024-09-11 05:17:15

您始终可以使用 来完成您正在尝试的操作。

<mx:HBox>
    <mx:TextInput />
    <mx:Label />
</mx:HBox>

You can always use an <mx:HBox></mx:HBox> to do what you are trying..

<mx:HBox>
    <mx:TextInput />
    <mx:Label />
</mx:HBox>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文