我遇到了一个问题,即在dojox.layout.TableContainer中布置许多行,每行都包含一个标签和两个单选按钮,它们各自有标签。当您使用普通标签时,它会将布局完全抛出。作为使用标签的另一种选择,我想使用dijit.form.TextBox,但这看起来很糟糕,所以我目前使用的是这样的(但它看起来很可怕,因为文本字段是假的):
<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很好地合作,那会很好,但如果没有这个,我该怎么办?
发布于 2011-10-10 23:50:37
我现在使用的解决方案可能不是最好的,但它与TableContainer配合使用,即在dijit.layout.ContentPane中包装长标签的文本。
https://stackoverflow.com/questions/7673921
复制相似问题