What is the definition of “the baseline of parent box”?

前端 未结 4 1442
星月不相逢
星月不相逢 2021-02-19 05:05

I have trouble understanding the following excerpt from 10 Visual formatting model details – W3C.

The excerpt:

baseline: Align

4条回答
  •  梦谈多话
    2021-02-19 05:52

    Look at this picture to see what exactly is the baseline.

    Now, let's demonstrate what the doc want to say:

    When you define the vertical-align: baseline then the element is aligned to the baseline of the parent element's baseline as in the above picture.

提交回复
热议问题