Setting table row height

前端 未结 8 2127
旧时难觅i
旧时难觅i 2020-12-25 09:07

I have this code:

8条回答
  •  忘掉有多难
    2020-12-25 09:41

    line-height only works when it is larger then the current height of the content of

. So, if you have a 50x50 icon in the table, the tr line-height will not make a row smaller than 50px (+ padding).

Since you've already set the padding to 0 it must be something else,
for example a large font-size inside td that is larger than your 14px.

提交回复
热议问题