1. Box model
Definition: Box Model, also known as Box Model, contains content, padding, border and margin, as shown in the figure below:Copy the code
Width =content+padding+border; padding :border-box
BFC
Action: Triggering the BFC can make the box a closed box, preventing the margins from overlapping trigger conditions: 1. Float values other than None 2. Overflow values other than Visible 3. Position value is absolute or fixed 4Copy the code