[CSS] hides the vertical scroll bar of the multi-line text box Textarea in IE, and the multi-line textarea

Source: Internet
Author: User

[CSS] hides the vertical scroll bar of the multi-line text box Textarea in IE, and the multi-line textarea

In [CSS] prohibiting Google browsers from allowing definition adjustment of multi-line text boxes (click to open the link), we have mentioned how to fix the multi-line text box Textarea in some DOM2 browsers.

This is not the case. Textarea also has some style defects in IE.

A common text box without any definition is added, as shown below:

<Textarea cols = "30" rows = "3"> </textarea>
Its effect on IE is the same as that on the left. The vertical scroll bar is unsightly when no text is input, especially when users are not planning to input too much text.


You can add overflow-y: hidden; as follows:

<Textarea cols = "30" rows = "3" style = "overflow-y: hidden;"> </textarea>
The result is the result of the right image.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.