0
我試圖下拉/ select元素添加到頁面,像這樣:爲什麼我的html select元素不顯示在頁面上?
<select name="subcategory" color="#000000" style="font: 8pt arial" onchange="UpdateFlag=true;">
<option value="3">Eastern
<option value="2">Central
<option value="1">Mountain
<option selected value="0">Pacific
</select>
(值(東部等)是假的佔位符現在 - 我只是在一個時間採取這一一步,第一個是看它是否會顯示在頁面上 - 它不
HTML表格的最後一部分,在一個小範圍內更證明這一點,就是:
<td nowrap align="left" valign="top">
<select name="TimeZone" color="#000000" style="font: 8pt arial" onchange="UpdateFlag=true;">
<option value="3">Eastern
<option value="2">Central
<option value="1">Mountain
<option selected value="0">Pacific
</select>
<font color="#000000" style="font: 8pt arial"> </font>
<font color="#000000" style="font: 8pt arial">Cut-Off Times </font>
<font color="#000000" style="font: 8pt arial">Same Day: </font>
<input name="CutOffTimeSD" type="text" style="font: 8pt arial" size="1" maxlength="5" onfocus="this.select();" onchange="UpdateFlag=true;" value=" ">
<font color="#000000" style="font: 8pt arial"> </font>
<font color="#000000" style="font: 8pt arial">Next Day: </font>
<input name="CutOffTime" type="text" style="font: 8pt arial" size="1" maxlength="5" onfocus="this.select();" onchange="UpdateFlag=true;" value="10:00">
</td>
</tr>
<tr>
<td nowrap align="left" valign="top">
<font color="#000000" style="font: 8pt arial">Options: </font>
</td>
<td nowrap align="left" valign="top">
<input name="SurveyFlag" type="checkbox" style="font: 8pt arial" size="1" maxlength="1" onfocus="this.select();" onchange="UpdateFlag=true;" value="-1" >
<font color="#000000" style="font: 8pt arial">Participate in online surveys </font>
</td>
</tr>
<tr>
<td nowrap align="left" valign="top">
<font color="#000000" style="font: 8pt arial">Email: </font>
</td>
<td nowrap align="left" valign="top">
<input name="Email" type="text" style="font: 8pt arial" size="100" maxlength="100" onfocus="this.select();" onchange="UpdateFlag=true;" value="">
</td>
</tr>
<tr>
<select name="subcategory" color="#000000" style="font: 8pt arial" onchange="UpdateFlag=true;">
<option value="3">Eastern
<option value="2">Central
<option value="1">Mountain
<option selected value="0">Pacific
</select>
</tr>
</table>
上面的代碼在顯示時從頁面中拉出(通過上下文ual「查看源」菜單項)。
那麼爲什麼「子類別」下拉菜單不顯示?電子郵件標籤和長文本框右側是可見的最後一個東西,即使htmlselect應該出現在它的下面,基於html。
新秀式的錯誤。 –
如果你相信自己是造成問題的複雜因素,那麼很容易錯過一些基本的東西。訣竅不是在注意到基本錯誤之前打破複雜的位。我已經做了太多次了。 – Gordon