可以输入的下拉菜单
<html>
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=gb2312">
<title>無(wú)標(biāo)題文檔</title>
</head>
<body?οnlοad="c_cpua.value=c_cpu.options[c_cpu.selectedIndex].value">
<div?style="position:absolute;">
?<select?name="c_cpu"?style="position:absolute;top:30px;?width:?150px;?height:?20px;?clip:?rect(0?180?110?130)?"?onChange='c_cpua.value=this.options[this.selectedIndex].value'>
?<option?value="1">1</option>
?<option?value="2"?selected>2</option>
?<option?value="3">3</option>
?<option?value="4">4</option>
?</select>
?<input?name="c_cpua"?type="text"?style="position:absolute;top:30px;?width:?149px;?height:?20px">
</div>
<input?type="button"?name="Submit"?value="結(jié)果"?onClick="alert(c_cpua.value)">
</body>
</html>
http://www.corange.cn/archives/2008/03/432.html
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=gb2312">
<title>無(wú)標(biāo)題文檔</title>
</head>
<body?οnlοad="c_cpua.value=c_cpu.options[c_cpu.selectedIndex].value">
<div?style="position:absolute;">
?<select?name="c_cpu"?style="position:absolute;top:30px;?width:?150px;?height:?20px;?clip:?rect(0?180?110?130)?"?onChange='c_cpua.value=this.options[this.selectedIndex].value'>
?<option?value="1">1</option>
?<option?value="2"?selected>2</option>
?<option?value="3">3</option>
?<option?value="4">4</option>
?</select>
?<input?name="c_cpua"?type="text"?style="position:absolute;top:30px;?width:?149px;?height:?20px">
</div>
<input?type="button"?name="Submit"?value="結(jié)果"?onClick="alert(c_cpua.value)">
</body>
</html>
http://www.corange.cn/archives/2008/03/432.html
轉(zhuǎn)載于:https://www.cnblogs.com/zerogo/archive/2008/08/29/2209284.html
總結(jié)
- 上一篇: HTML 标签自定义属性
- 下一篇: 用boolalpha输出true或fal