How can I hide an HTML table row so that it takes up no space?

前端 未结 15 989
情歌与酒
情歌与酒 2020-12-25 09:15

How can I hide an HTML table row so that it takes up no space? I have several \'s set to style=\"display:none;\"

相关标签:
15条回答
  • 2020-12-25 09:57

    Add some of the following line-height:0px;font-size:0px;height:0px;margin:0;padding:0;

    I forget which one does it. I think it's line-height for IE6.

    0 讨论(0)
  • 2020-12-25 09:58

    Can you include some code? I add style="display:none;" to my table rows all the time and it effectively hides the entire row.

    0 讨论(0)
  • 2020-12-25 10:00

    I would really like to see your TABLE's styling. E.g. "border-collapse"

    Just a guess, but it might affect how 'hidden' rows are being rendered.

    0 讨论(0)
提交回复
热议问题