嗨,如何以编程方式为 dijit/form/select 中的每个选项添加粗体和字体大小等样式?
ready(function()//This function won't run until the DOM has loaded and other modules that register have run
{
parser.parse();
var select_Card = new Select
({options:
[
{label:"Select Card", value:"", selected:true},
{label:"Mk7ABC Card", value:"testdata1970_05", selected:false},
{label:"Mk7CBC Card", value:"testdata1970_10", selected:true},
{label:"Mk10DC Card", value:"testdata2060_03", selected:false},
{label:"Mk6BC Card", value:"dbProdigy", selected:false},
{label:"Mk6NBC Card", value:"dbProdigy_MK6N", selected:false},
], style:{width:'250px'}
}, "select_Card");
select_Card.startup();
});
});
请告知谢谢克莱门特