There are two types of web page box models: 1: Standard W3C box model; 2: IE box model (the default model of IE browser). In two different model web pages, the display effects of elements with the same CSS properties defined are different. The following formula is used to distinguish these two different box models. 1: Standard W3C box model Width = width + (padding-left) + (padding-right) + (margin-left) + (margin-right) + (border-left) + (border-right) Height = height + (padding-top) + (padding-bottom) + (margin-top) + (margin-bottom) + (border-top) + (border-bottom) ![]() 2: IE box model width = width + (border-left) + (border-right) Height = height + (border-top) + (border-bottom) ![]() This model is the default box model of IE browser, of course, it can also be changed |
<<: Detailed explanation of the basic usage of the img image tag in HTML/XHTML
>>: Summary of fragmented knowledge of Docker management
Table of contents Environment Preparation Environ...
When you first start learning Linux, you first ne...
Responsive design is to perform corresponding ope...
This article shares the specific code for React t...
In cells, dark border colors can be defined indiv...
This article example shares the specific code of ...
This article example shares the specific code of ...
Table of contents 1. Shallow cloning 2. Deep clon...
Table of contents 1. Database bottleneck 2. Sub-l...
This status code provides information about the s...
load Request Success Request failed Click cmd and...
Table of contents 1. LVS load balancing 2. Basic ...
1. Do a good job of cleaning before installation ...
Sttty is a common command for changing and printi...
Since I used this plugin when writing a demo and ...