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).
- 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.
精彩评论