用一个Input框+一个Select框实现。
直接把下面的代码copy到你的web层看效果。

<span style="WIDTH: 48px; POSITION: relative">
               <SELECT onChange="comboChange(this)" style="MARGIN-TOP: 1px; FONT-WEIGHT: bold; LEFT: 0px; VISIBILITY: visible; OVERFLOW: hidden; WIDTH: 98%; CLIP: rect(auto auto auto 29px); POSITION: absolute; TOP: 0px; HEIGHT: 20px"  size="1" Columns="12"> <option value="160" > 160 </option>  </SELECT>
  <input type="text" name="txtheaderwidth"  onpaste="return false;" onKeyPress="return myKeyPress();"  maxlength="3" style="FONT-WEIGHT: bold; Z-INDEX: 200; LEFT: 0px; VISIBILITY: visible; WIDTH: 31px; POSITION: relative; TOP: 0px; HEIGHT: 20px">
          </span>


 function comboChange(obj)
 {
  obj.parentNode.childNodes[2].value=obj.value;//将Select框选中的值赋予Input框。
 }

相关文章:

  • 2021-12-19
  • 2021-07-07
  • 2022-12-23
  • 2021-06-04
  • 2021-05-18
  • 2021-12-26
  • 2021-05-25
猜你喜欢
  • 2021-05-16
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-09-10
  • 2022-12-23
相关资源
相似解决方案