设置select宽度,一直以来都认为只能通过修改选项的长度来修改,今天发现可以直接设置,代码如下:
<form name="form1" method="post" action=""> <select style="width:150px"> </select> </form> |