简体   繁体   中英

TextArea without vertical Scrollbar as long as numbers of visible rows are not used

I've a TextArea with 3 rows.

Problem: Firefox does not show the vertical scrollbar until the user has used more than 3 rows but Internet Explorer 8 always show the scrollbar.

I need Firefox's behaviour in Internet Explorer 8.

Any ideas?

<textarea style="overflow:auto" />

Might be firxfox's rendering issue.

You might want to specify the height as well, perhaps give this a try:

yourtextarea.yourclass
{
  overflow: auto;
  height: 30;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM