<input style="overflow-y:visible">

解决方案 »

  1.   

    <input style=':expression(this.width=this.scrollWidth)' value="打些字进来看看。何证OK">
      

  2.   

    <input style='width:expression(this.width=this.scrollWidth)' value="打些字进来xxxxxxxxxxxxxxxx又中文123456789看见了"> 上面的漏了一点
      

  3.   

    文本诓作不到换行说,用textarea
    <textarea onpropertychange="this.style.posHeight=this.scrollHeight">
    enjoy:D
      

  4.   

    another way..........
    <textarea style="height:expression(this.style.posHeight=this.scrollHeight);width:expression(this.style.width=this.scrollWidth)">daskhfasdjk</textarea>
      

  5.   

    谢过楼上各位。。
    再罗嗦一句,能不能用CSS样式定。
      

  6.   

    <style>
    input.mytext{overflow-y:visible}
    </style>
    <input class=mytext>