The following is the positioning of the page layout that I have compiled for you. Interested students can take a look.
When using div CSS for page layout, position positioning is understood as follows:
1. (Current element's) position: relative, a layout that does not break away from the document flow , relative to the offset of its own position, when the original position is blank, the following elements will not be filled, that is, the relative position (or relative order) of the current element and the following elements will not change. I usually understand it as: no matter How, the order of the current element and subsequent elements will not change.
2. (Current element's) position: absolute, separated from the layout of the document flow. When the original position is blank, it will be filled by subsequent elements. The starting position of positioning is the parent element (position is not static) or Body, that is, the position of the current element relative to the parent element or body is fixed, but subsequent elements may move in front of the current element. I usually understand this as: the order of the current element and subsequent elements may change. .
3. (Current element's) position: fixed, similar to absolute, but does not change the position as the scroll bar moves (for example, some advertisements placed in the lower right corner of web pages, when the scroll bar is pulled down, the position of the advertisement is unchanged), when the browser is zoomed out so that this element is not visible, no scroll bars will appear on the page.
4. (Current element’s) position: static, default value.
The above is the positioning of the page layout I compiled for you. I hope it will be helpful to you in the future.
Related articles:
Detailed introduction to CSS page layout techniques
Detailed explanation of CSS basic knowledge points
jquery CSS3 implements drop-down navigation menu function
The above is the detailed content of Detailed interpretation of positioning in page layout. For more information, please follow other related articles on the PHP Chinese website!

Since I first chimed in on the CSS4¹ thing, there's been tons of more discussion on it. I'm going to round up my favorite thoughts from others here. There is

Every time I start a new project, I organize the code I’m looking at into three types, or categories if you like. And I think these types can be applied to

I've been guilty of publicly bemoaning the complexity of HTTPS. In the past, I've purchased SSL certificates from third-party vendors and had trouble

Everything you ever wanted to know about data attributes in HTML, CSS, and JavaScript.

If you haven’t worked with immutability in JavaScript before, you might find it easy to confuse it with assigning a variable to a new value, or reassignment.

It’s entirely possible to build custom checkboxes, radio buttons, and toggle switches these days, while staying semantic and accessible. We don’t even need a

There are special superset number characters that are sometimes perfect for footnotes. Here they are:

Have you ever needed a countdown timer on a project? For something like that, it might be natural to reach for a plugin, but it’s actually a lot more


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version
Chinese version, very easy to use