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)
Scenario: After installing the latest version of ...
Everyone must be familiar with table. We often en...
MySQL 8 official version 8.0.11 has been released...
Table of contents 1. In project development, the ...
The implementation method is divided into three s...
MYSQL is case sensitive Seeing the words is belie...
Table of contents 1. Resources and Construction 1...
Find the problem After upgrading MySQL to MySQL 5...
Table of contents Preface toDoList just do it Pre...
Table of contents Styles in uni-app Summarize Sty...
Table of contents Conclusion first question Solut...
When I was writing the login page today, I needed...
Today I saw a blog post about input events, and o...
The installation tutorial of mysql 8.0.11 winx64 ...
Preface: Sometimes in a route, the main part is t...