2
我有下拉列表和文本框,並且它們的寬度屬性都設置爲100px, 爲什麼下拉列表比文本框小。DropDownList的寬度屬性有一個問題
<asp:DropDownList runat="server" Width="100" ></asp:DropDownList>
<asp:TextBox runat="server" Width="100" ></asp:TextBox>
我有下拉列表和文本框,並且它們的寬度屬性都設置爲100px, 爲什麼下拉列表比文本框小。DropDownList的寬度屬性有一個問題
<asp:DropDownList runat="server" Width="100" ></asp:DropDownList>
<asp:TextBox runat="server" Width="100" ></asp:TextBox>
您使用的是<select width="100px">
或<select style="width:100px"
?如果是前者,則將其更改爲後者。
+1 - yup。更改。 :) – 2010-08-25 12:47:54