如何在flex中创建类似结构的HTML表格 [英] How to create HTML table like structure in flex

查看:334
本文介绍了如何在flex中创建类似结构的HTML表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

html表格的编码结构看起来像下面所示的代码


< table>


< tr>


< td> Text< / td>
code>
< td>输入文字栏位< / td>

< / tr>


< tr>


< td>< / td> ;


< td>< / td>




< tr>


< td> submit butto< / td>


< / tr>



如何在flex中创建这样的表格结构, colspann和rowspan的选项是否可以替代呢?

解决方案

有很多方法。我可能首先查看表单布局容器。对于两列布局来说,这是非常棒的,尽管它不能控制主要用于的第一列



理论上,您也可以创建类似这样的东西通过使用嵌入式容器,但我不认为我会推荐这种方法,因为我怀疑你最终会得到大量不必要的容器。



你也可以写你的自己的布局类。有关布局的详细信息。这是最强大/灵活的方法,但可能也是最耗时的。

The html table coding structure looks something like the code shown below
<table>
<tr>
<td>Text</td>
<td>input text field</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>submit butto</td>
</tr>
</table>
How to create such table structure in flex which has above given row and column format in flex application with the option of colspann and rowspan alternate too?

解决方案

There are a lot of ways. I would probably start by looking into the Form layout container. That is great for a two column layout, although it gives you little control over the first column which is primarily used for

You could also, in theory, create something like this by using embedded containers, but I do not think I would recommend that approach because I suspect you'll end up with a lot of unnecessary containers.

You could also write your own layout class. More info on layouts here. This is the most powerful/flexible approach, but probably also the most time consuming.

这篇关于如何在flex中创建类似结构的HTML表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆