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

前端 未结 15 1253
情歌与酒
情歌与酒 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:56

    If display: none; doesn't work, how about setting height: 0; instead? In conjunction with a negative margin (equal to, or greater than, the height of the top and bottom borders, if any) to further remove the element? I don't imagine that position: absolute; top: 0; left: -4000px; would work, but it might be worth a try.

    For my part, using display: none works fine.

提交回复
热议问题