是可以,在下拉框组件在另外自己的类,在style中重新写过高度再试一下。
js操纵select选中后项,代码::
lthtmlgtltscripttype#34text/javascript#34a8varselectedvalue#39lt%(#34line#34)%rlm#39functionchangeselected(){jsselectitembyvalue((#34myselect#34),selectedvalue)}functionjsselectitembyvalue(objselect,objitemtext){for(vari0iltobjselect.options.lengthi){if(objselect.options[i].valueobjitemtext){objselect.options[i].selectedtruebreak}}}lt/scriptgtltbodyonload#34changeselected()#34rlmltselectid#34myselect#34name#34myselect#34rlmltoptionvalue#340#34gt0lt/optiongtltoptionvalue#341#34r261lt/optiongtltoptionvalue#342#34a82lt/optiongtltoptionvalue#343#34gt3lt/optiongtlt/selectgtlt/bodygtlt/htmlgt