CSS2 box model

zhaozj2021-02-16  159

CSS2 box model

Since the introduction of CSS1 in 1996, the W3C organization recommended that the objects on all the web pages are placed in a box (box), and the designer can control the properties of this box by creating definitions, including paragraphs, list, headings. , Pictures and layers

. The box model mainly defines four regions: content, side frame distance (padding), border, and margin. The Sample layer we told above is a typical box. For beginners, they often don't know the hierarchical, relationships and interactions between margin, background-color, background-image, padding, content, border. Here is a 3D schematic of a box model, you want to make your understanding and memory.

转载请注明原文地址:https://www.9cbs.com/read-8295.html

New Post(0)