Application of overflow attribute

Source: Internet
Author: User

In the use of jQueryUI chosen plug-in, due to the page layout, drop-down list box beyond the div range, the graphic effect of serious deformation, a little solution to the idea of no, finally consult the company front-end, instant resolution, the original use of CSS in the overflow attribute is done.

Now re-learn the following overflow knowledge:

Browser Support

All major browsers support the overflow property.

Note: The property value "Inherit" is not supported by any version of Internet Explorer (including IE8). Definition and Usage

The overflow property specifies what happens when the content overflows the element box. Description

This property defines how the content of the overflow element's content area will be handled. If the value is scroll, the user agent provides a scrolling mechanism, whether or not it is required. Therefore, it is possible that scroll bars appear even if all the contents of the element box can be dropped.

Default value: Visible
Inheritance: No
Version: CSS2
JavaScript Syntax: object.style.overflow= "Scroll"
Possible values
value Description
Visible The default value. The content is not trimmed and is rendered outside the element box.
Hidden The content is trimmed and the rest is not visible.
Scroll The content is trimmed, but the browser displays scroll bars to see the rest of the content.
Auto If the content is trimmed, the browser displays scroll bars to see the rest of the content.
Inherit Specifies that the value of the overflow property should be inherited from the parent element.

Address: http://www.w3school.com.cn/cssref/pr_pos_overflow.asp

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.