参考:
http://blog.csdn.net/dh20156/archive/2005/10/16/504814.aspx

解决方案 »

  1.   

    参考:
    <body bgcolor="buttonface">
    <input type="text" id="bindtxt" name="ctno" style="font-size:12px;width:150px">
    <select name="sctno" style="position:absolute; top:expression((bindtxt.offsetTop) + 'px'); left:expression((bindtxt.offsetLeft) + 'px'); width: 150px; height: 18px; clip: expression('rect(2 ' + this.offsetWidth +' 18 ' + (this.offsetWidth - 18) +')');background-color:#ffffff; font-size:12px;">
    <option value="0">请选择客户编号</option>
    </select>
    </body>
      

  2.   

    加个事件:
    <body bgcolor="buttonface">
    <input type="text" id="bindtxt" name="ctno" style="font-size:12px;width:150px">
    <select name="sctno" style="position:absolute; top:expression((bindtxt.offsetTop) + 'px'); left:expression((bindtxt.offsetLeft) + 'px'); width: 150px; height: 18px; clip: expression('rect(2 ' + this.offsetWidth +' 18 ' + (this.offsetWidth - 18) +')');background-color:#ffffff; font-size:12px;" onchange="if(this.value!='0'){bindtxt.value=this.value;}">
    <option value="0">请选择客户编号</option>
    <option value="ct-001">ct-001</option>
    <option value="ct-002">ct-002</option>
    </select>
    </body>