1, Row height definition row height refers to the distance between the lines, that is, the distance between the baseline, and only two lines of text will have two baselines, then why is a single line of text also has row height? We look down with this question. 2, inline box model <p> This is a single line of text, there is a <span> content area </span> tag. </p> "Content area" is a box around the text, we can be seen as the size of the mouse in the selected text area, its size is only related to Font-size, can be seen as the text in Figure one is selected by the mouse area, that is, the selected "single-line text "Area. Inline Boxs does not make the text appear as blocks, but is arranged in a line. Text wrapped by inline elements, such as the "content area" of a span label package, can be called an "inline box", and without the part of the inline element package, we can be seen as an "anonymous inline box." The "inline box" can be seen as the "content area" area within the span tag in figure one, while the "Anonymous inline box" can be seen as a red virtual
1. CSS properties that must be mastered--lineheight
Introduction: 1, Row height definition row height refers to the distance between the lines, that is, the distance between the baseline, and only two lines of text will have two baselines, then why is a single line of text also has row height? We look down with this question. 2, inline box model This is a single line of text, there is a content area label. "Content area" is the box around the text, we can be seen as the size of the mouse in the selected text area, its size is only related to FontSize, can be seen as the text in the picture is the mouse selected area, that is ...
2. Share the way in which the font in a sequence is larger and less centered
Introduction: Scene: Click on a letter to pop up a modal and show the letter in modal. style:.modal{position:absolute left:0 right:0 top:0 bottom:0 margin:600rpx 300rpx 0 300rpx height:140rpx; bo RDERRADIUS:10RPX; Lineheight: ...
"Related question and answer recommendation":
JavaScript-a strange problem in computing Dom properties (getComputedStyle)