5.22 formatting and layout knowledge Point finishing

Source: Internet
Author: User

position:fixed Lock Position (relative to the browser's location), such as a pop-up window in the lower-right corner of some sites. The page position does not change with the scroll bar, the position is fixed two, position:absolute1. is not included in the outer layer, then the DIV is positioned relative to the browser 2. is enclosed by the outer layer, then the DIV is positioned relative to the outer border!!!!!!! <both inside and outside the two layers must be noted: position: Absolute>!!!!!!! Three, position:relative relative position. 1. If the outer layer does not contain it, position it relative to the lower-left corner of the previous layer (character, or graphic). 2. If the outer layer contains it, the position of the upper-left corner is positioned relative to the graphic containing it.    Iv. Stratification (z-index) 1. Layered in the z-axis, it can be understood to be divided into stacks of paper, the higher the number of layers (the larger the number Z-index), the higher. (The system defaults when not labeled, and the higher the number of character layers you enter) five.     Float:left, right (Liu's layout) 1. Leave, right without giving him a position (left, top), directly relative to the browser.     If the outer is wrapped, the top left or right side of the position of the drop line relative to the outer div is displayed 2. Overflow:hidden;//scroll, showing scroll bar; Liu's layout diagram I. 1 3 5 7 8 6 4 22.1 3 5*6 4 2 (7) Less space moves down three. 1 3 5 (7) 6 4 2 separate lines are not wrapped four. 135 (7) 642 (8) When the logarithm appears, arranged by space, do not team 135 (7) 642 (8) When the logarithm appears, by space, do not team five. Translucent Effect<Divclass= "box">Transparent area<Div>The code in the style sheet is:. box{transparency: opacity:0.5; fill degree:-moz-opacity:0.5; Filter:alpha (opacity=50)}1. Transparency 0.5, fill degree 0.5, total effect becomes 4 12. When the font is contained in a Div, the font becomes translucent resulting in ambiguity. Workaround: Place the font outside the Div.                  Use Position:absolute (not included) directly according to the body fixed position. 

5.22 formatting and layout knowledge Point finishing

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.