html doctype adds whitespace?

前端 未结 4 1817
慢半拍i
慢半拍i 2020-12-09 13:03

can someone please explain to me why having a doctype of

and

4条回答
  •  伪装坚强ぢ
    2020-12-09 13:26

    My suspicion is that the white space within the markup (e.g., the newlines and tabs that make the table code nicely legible) are at fault. I've encountered similar issues before, where space in the markup resulted in annoying space on the screen, even where it would appear not to matter (e.g., between

  • tags).

    Try collapsing the table markup onto a single lengthy line.

提交回复
热议问题