html doctype adds whitespace?

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

can someone please explain to me why having a doctype of

and

4条回答
  •  再見小時候
    2020-12-09 13:34

    Not sure why the space occurs. As far as a fix goes, if you don't mind explicitly setting a height for your table cell, you can add display:block; and height:60px; to your td styles.

提交回复
热议问题