有时候因为包含了这一部分导致下拉框不可使用:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
或者使用
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> (IE6模拟IE8 解决这种不兼容的问题)。
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<style type="text/css">
.tdSelect{}
.tdSelect div{position: relative;}
.tdSelect div span{margin-left:170px; width:28px; overflow: hidden; }
.tdSelect div span select{width: 188px; margin-left: -170px; height:119px; }
.tdSelect div input{height:19px;width: 170px; position: absolute; left: 0px;}
</style>
<table>
<tr>
<th>可手动输入下拉框:</th>
<td class ="tdSelect">
<div>
<span>
<select id="UIDSelect" οnchange="this.parentNode.nextSibling.value=this.value">
<option value="001" >001</option>
<option value="002" >002</option>
<option value="003" >003</option>
<option value="004" >004</option>
</select>
</span>
<input type="text" name="UID" id="UID" value='' />
</div>
</td>
<td>
<input type="button" value="隐藏的值" οnclick="alert(document.getElementById('UID').value);" />
</td>
</tr>
</table>
</body>
</html>