dojo使用Programmatic(程序)方式创建form组件没有lable属性的解
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); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |