开发者

horizontal scroll bar of IE and input text box

I have a situation, where I have a text input box in IE(input type='text') But the horizontal scroll bar of IE will be shown when it has lots of texts , and the box is not fixed-siz开发者_StackOverflowe. What I would like to have is: 1. The input box should accommodate the whole text(not fixed -size).

  1. the horizontal scroll bar of IE will not be shown.


Setting overflow: visible should achieve the effect you are describing (assuming you do want the text field to grow to accommodate its content.

If you want the default behavior, set overflow: hidden on the text field.

Setting overflow: auto can cause a horizontal scrollbar in IE when the content size exceeds the field width.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜