dojox/layout/TableContainer, the form component in this container can have a label attribute, and it will also be displayed, an example is as follows:
Var tb=new TableContainer({
< p style=``margin-top:0px; margin-bottom:16px; padding-top:0px; padding-bottom:0px; font-size:16px; font-family: Microsoft Yahei, Tahoma; line-height: 25.600000381469727px "> labelWidth:50,//lable’s width
Region:’top’
});
var slan=new Select({
id:”slan”,
Label:’font size’,//select Label displayed in front of the box
title:”font size”,
style:”width: 70px”,
options:[{label:”小”,value:”11″,style:”font-size::11px”},
{label:”中”,value:”12″,style:”font-size::12px”},
{label:”大”,value:”14″,style:”font- size::14px”}]
}} });
tb.addChild(slan); tb.addChild(slan);
>