参考
Javaphua Blog(感谢其帮我解决问题)的同名文章,做了一点修改:把id="mySelect" 的高度值设置为:21px,让外观显得舒服些.
1 <div style="position:relative;">
2 <span style="margin-left:100px;width:18px;overflow:hidden;">
3 <select style="width:118px;margin-left:-100px" onchange="this.parentNode.nextSibling.value=this.value">
4 <option value=''></option>
5 <option value='测试'>测试'</option>
6 </select>
7 </span>
8 <input id="mySelect" style="width:100px;position:absolute;left:0px;height:21px;">
9 </div>