You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Css box model: from the outside to the inside, margin, border, padding, content.
Block elements are in the page, occupying one line, can be set wide and high, can hold block elements and inline elements.
Common block elements are div, p, h1-h6, ul, etc. Inline elements have no attributes of width or height, but they can be on the same line as other elements. Generally, they cannot contain block elements. The height of inline elements is generally determined by the font size inside the element, and the width is controlled by the length of the content.
Common inline elements are a, b, span, strong, em, etc.
[CSS]
Css 的盒模型:从外到里,margin,border,padding,content。
块元素在页面里,占一行,可以设定宽和高,可以容纳块元素和行内元素。
常见 的块元素有 div,p,h1-h6,ul 等。 行内元素没有宽和高的属性但可以与其他元素同一行,一般不可以包含块元素, 行内元素的高度一般由元素内部的字体大小决定,宽度由内容的长度控制。
常见的行 内元素有 a,b,span,strong,em 等。
The text was updated successfully, but these errors were encountered: