如何防止下拉列表向上移动?
How to prevent drop down list goes upwards?
我希望我的下拉列表只向下而不是双向
Image
<select name="routeNo">
<option value="" disabled selected style="color: rgb(214, 205, 205);">Bus No.</option>
<%**strong text**
while(rs.next())
{%>
<option><%=rs.getString("routeNo")%></option>
<%}
%>
"Drop-downs are rendered by the Browser/OS. You cannot control this type of behaviour using CSS or JavaScript."
~Diodeus - 詹姆斯·麦克法兰
参考:How do you stop a dropdown menu from going up?
我希望我的下拉列表只向下而不是双向
Image
<select name="routeNo">
<option value="" disabled selected style="color: rgb(214, 205, 205);">Bus No.</option>
<%**strong text**
while(rs.next())
{%>
<option><%=rs.getString("routeNo")%></option>
<%}
%>
"Drop-downs are rendered by the Browser/OS. You cannot control this type of behaviour using CSS or JavaScript."
~Diodeus - 詹姆斯·麦克法兰
参考:How do you stop a dropdown menu from going up?