why do modern browsers still put spaces between inline block if there is whitespace

前端 未结 4 1752
慢半拍i
慢半拍i 2021-01-12 22:51

If you have markup like this:

one
two
4条回答
  •  甜味超标
    2021-01-12 23:23

    This is exactly what they should do.

    Spaces between inline elements are no different from spaces between words.

    If you don't want that, use block elements, or set the font size to zero.

提交回复
热议问题