Position positioning to solve the situation when the frame is dragged out of the screen

Source: Internet
Author: User

There are four types of position positioning:

1 static default, no positioning, elements appear normally in the document flow.

2 Fixed absolute positioning

The position of the element relative to the browser window is a fixed position.

Even if the window is scrolled, it will not move: position out of the document stream without occupying a position.

3 relative relative positioning, relative to its normal position, also in the document flow, occupy position.

Relative positioning elements are often used as container blocks for absolutely positioned elements.

4 Absolute Absolute Positioning

The position of an absolutely positioned element is relative to the nearest positioned parent element, if the element has no positioned parent element, then its position is relative to the

Positioning out of the document stream, not occupying space, can overlap on top of other elements.

Examples of work: frames dragged out of the screen

Work, it is possible to encounter the frame dragged out of the screen, it may be that the frame positioning is not fixed. Change the positioning to fixed to make it relative to the browser location.

Position positioning to solve the situation when the frame is dragged out of the screen

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.