0

我在 dojox.layout.TableContainer 中布置多行时遇到问题,每行都包含一个标签和两个带有自己标签的单选按钮。当您使用普通标签时,它会完全抛出布局。作为使用标签的替代方法,我想到了使用 dijit.form.TextBox,但这看起来很糟糕,所以我目前拥有的是这个(但它看起来很可怕,因为文本字段 con):

            <div dojoType="dojox.layout.TableContainer" cols="3" customClass="labelsAndValues">
                <input dojoType="dijit.form.TextBox" readOnly value="Would you like to apply for residency?">
                <input type="radio" dojoType="dijit.form.RadioButton" name="residency"
                       value="No" title="No"/>
                <input type="radio" dojoType="dijit.form.RadioButton" name="residency"
                       value="Yes" title="Yes"/>
                <input dojoType="dijit.form.TextBox" disabled readOnly value="Are you currently residing overseas?">
                <input type="radio" dojoType="dijit.form.RadioButton" name="overseas"
                       value="No" title="No"/>
                <input type="radio" dojoType="dijit.form.RadioButton" name="overseas"
                       value="Yes" title="Yes"/>
            </div>

我想如果有一个 dijit.form 版本的标签可以很好地与 TableContainer 一起使用,那会很好,但是如果没有它,我该怎么办?

4

1 回答 1

0

好吧,我现在使用的解决方案可能不是最优雅的,但它与 TableContainer 一起使用,那就是将长标签的文本包装在 dijit.layout.ContentPane 中。

于 2011-10-10T15:50:36.973 回答