0

So i have made column widths for my input text (which i am mandated by client to do so...)

    <td colspan="1" width="250">
             <input type="text" id="CUSTOMER_NAME" 
               name="APPLICATION.CUSTOMER_NAME" 
               value="ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567891011" 
               size="30" 
               maxlength="30"/>
     </td>

At first look, it does seem like its truncated. Like below. But in actual fact once you double-click on the text, you can scroll horizontally to reveal the text further to the right

enter image description here enter image description here

Is there any way to prevent the horizontal scroll and have the text wrap to the second line for IE 7 without using textarea?

Expected outcome: enter image description here

4

3 に答える 3

2

テキストボックスは1行のみです(ソース)。<textarea>を使用して問題を解決することをお勧めします。

于 2012-10-25T19:03:06.627 に答える
0

2行目が必要な場合は、を使用し<textarea>ます。widthまたは、 CSSプロパティを次のように使用してみてください<input type="text" style="width: 100px;" />

于 2012-10-25T19:04:02.773 に答える
0

フォーカス幅に100%のようなことをしてから、クライアントが希望の幅として指定したものに戻すオプションはありますか?

于 2012-10-25T19:08:00.090 に答える