dojox/layout/TableContainer,这个容器中的form组件可以带lable属性,并且也会显示,例子如下:
var tb=new TableContainer({
labelWidth:50,//lable的宽度
region:'top'
});
var slan=new Select({
id:"slan",
label:'字体大小',//选择框前面显示的lable
title:"字体大小",Tahoma; line-height:25.600000381469727px"> style:"width: 70px",Tahoma; line-height:25.600000381469727px"> options:[{label:"小",value:"11",style:"font-size::11px"},Tahoma; line-height:25.600000381469727px"> {label:"中",value:"12",style:"font-size::12px"},Tahoma; line-height:25.600000381469727px"> {label:"大",value:"14",style:"font-size::14px"}]
tb.addChild(slan);
原文链接:https://www.f2er.com/dojo/290993.html