1. haslayout and bfc are IE-specific and standard attributes. 2. BFC is an isolated independent container on the page. The child elements inside the container will not affect the elements outside, and vice versa. 3. BFC has 3 functions: 1. Contains floating elements, 2. Prevent overlap in screenwriting, 3. Prevent being covered by floating elements 4. Trigger conditions: float value other than None overflow values other than visible (hidden, auto, scroll) display (table-cell, table-caption, inline-block, flex, inline-flex) The position value is (absolute, fixed) The fieldset element It is important to remember that bfc is an independent container that does not affect other layouts and will not be affected. By using its characteristics, you can solve problems such as clearing floats and 2-column layouts. Example: 2-column adaptive layout 1. Solve it with floating and negative margin 2. Trigger bfc and will not be covered by floating elements |
<<: Implementation of CSS text shadow gradually blurring effect
>>: HTML Editing Basics (A Must-Read for Newbies)
Nginx supports three ways to configure virtual ho...
Table of contents 1. Introduction to SELinux 2. B...
Table of contents 1. One-way value transfer betwe...
How can we say that we should avoid 404? The reas...
Here are a few ways to remove it: Add the link dir...
Summarize 1. Similarities Both can change the int...
Let's take a look at the dynamic splicing of ...
Overview As for the current default network of Do...
Error message: Job for mysqld.service failed beca...
Use canvas to create graphics and text with shado...
1. In addition to the default port 8080, we try t...
Table of contents Saltstack deploys zabbix servic...
Solution to Host 'xxxx' is not allowed to...
When making a website, I found that video files, s...
1. Construction components 1. A form must contain...