作个WINFORM的只有个combobox的UserControl,生成一个ActiveX控件,在Web页面里用Object调用.
我以前也想作你说的这种效果的,找了半天只有把一个textBox和下拉列表重叠放一起,让textBox的Z高于下拉列表,还得在两个控件之间建立联系,什么OnTextChanged等等,很麻烦.
我以前也想作你说的这种效果的,找了半天只有把一个textBox和下拉列表重叠放一起,让textBox的Z高于下拉列表,还得在两个控件之间建立联系,什么OnTextChanged等等,很麻烦.
//clientuser = document.getElementById("clientUser");
//selectobj = document.getElementById("select");
////alert(selectobj.style.position);
//clientuser.style.position = selectobj.style.position;
</script><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>
<select id="select" name="select" style="position: absolute; left: 197px; top: 80px;
width: 120px; height: 22px; clip: rect(0 120 22 100)" id="select" onchange="clientUser.value=select.options[select.selectedIndex].text;clientUser.select()">
<option value="1" selected>aaaaaa</option>
<option value="2">bbbbb</option>
</select>
<input id="clientUser" type="text" style="position: absolute; left: 197px; top: 80px;
width: 95px; height: 15px" name="clientUser" value="请选择二批名称" onfocus="this.select();">
</td>
</tr>
</table>