CSS processing Overflow

Source: Internet
Author: User

If the content exceeds the size of the chunk, the content will overflow, you can use the following method to control the overflow

Overflow
Visible does not cut content and does not add scroll bars
Auto object content is cropped or displayed when required
Hidden does not display content beyond the object size (no scroll bars, no extra content)
Scroll always show scroll bars
Overflow-x (IBID.)
Overflow-y (IBID.)

Use of scroll bars in CSS
Scrollbar-3dlight-color Color/16 binary scroll bar bright border
Scrollbar-highlight-color Color/16-in-line scrollbar 3D interface Bright Edge
Scrollbar-face-color Color/16-in-line scrollbar 3D surface
Scrollbar-arrow-color Color/16 binary scroll bar direction arrows
Scrollbar-shadow-color Color/16 binary scroll bar 3D Dark Side
Scrollbar-darkshadow-color Color/16 binary scroll bar Dark border
Scrollbar-base-color Color/16-binary scrollbar base color
Scrollbar-track-color Color/16 The drag area of the binary scroll bar

<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Use of overflow in CSS</title><styletype= "Text/css">Div{Background-color:#F00;width:200px;Height:100px;Overflow:Auto;Scrollbar-face-color:Red;Scrollbar-shadow-color:Green;Scrollbar-track-color:Bule;}</style></Head><Body><Div>PHP100. COM Chinese network php100.com Chinese network php100.com Chinese network php100.com Chinese net php100.com Chinese net php100.com Chinese net php100.com Chinese net php100.com Chinese net php100.com Chinese net php100.com Text Network php100.com Chinese network php100.com Chinese network php100.com Chinese network php100.com Chinese network php100.com Chinese Network</Div></Body></HTML>

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.