首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

怎樣控制下拉框的寬度?该如何处理

2012-03-14 
怎樣控制下拉框的寬度?formid form1 name form1 method post action tablewidth 321 b

怎樣控制下拉框的寬度?
<form   id= "form1 "   name= "form1 "   method= "post "   action= " ">
    <table   width= "321 "   border= "1 ">
        <tr>
            <td   width= "179 "> <input   type= "text "   id= "text "   name= "text "   /> </td>
            <td   width= "126 "> <img   src= "select_arrow.gif "   width= "15 "   height= "18 "   /> </td>
        </tr>
        <tr>
            <td> <select   id= "select "   name= "select "   size= "1 ">
            <OPTION   VALUE= "1 "> Canada
    <OPTION   VALUE= "2 "> Denmark
            <OPTION   VALUE= "3 "> Finland
           
            </select>
            </td>
            <td> &nbsp; </td>
        </tr>
    </table>
</form>
這裡的下拉框太短,我想和上邊的文本框對劉,變得一樣長,怎麼做?

[解决办法]
<form id= "form1 " name= "form1 " method= "post " action= " ">
<div>
<input type= "text " id= "text " name= "text " style= "width:200px; "/>
<img src= "select_arrow.gif " width= "15 " height= "18 " />
</div>
<div>
<select id= "select " name= "select " size= "1 " style= "width:200px; ">
<OPTION VALUE= "1 "> Canada
<OPTION VALUE= "2 "> Denmark
<OPTION VALUE= "3 "> Finland
</select>
</div>
</form>

热点排行