html只做一个可以输入字符串的下拉框

<HTML>

<HEAD>

<META http-equiv='Content-Type' content='text/html; charset=gb2312'>

<TITLE>可输入的下拉框</TITLE>

</HEAD>

<BODY >

<div style="position:relative;">

<span style="margin-left:100px;width:18px;overflow:hidden;">

<select style="width:118px;margin-left:-100px" onchange="this.parentNode.nextSibling.value=this.value">

<option value="www.inte.net"> inte </option>

<option value="https://www.inte.net"> 因特网 </option>

<option value="WEB开发者"> WEB开发者 </option>

</select></span><input name="box" style="width:100px;position:absolute;left:0px;">

</div>

</BODY></HTML>

相关推荐

评论

展开