Why do inline-blocks break after non-breaking space?

后端 未结 4 1659
无人共我
无人共我 2020-12-16 12:05

Some HTML code:

Hello World how are you. Entrepreneur

4条回答
  •  遥遥无期
    2020-12-16 12:05

    I would imagine it is due to the inline-block rendering the inside of the element as a block. Since you don't have white space between the text and the span it's forcing a break and then dropping it onto a different line.

    Not noticed it before though so it's mainly speculation.

提交回复
热议问题