如何隐藏HTML表格行< tr>所以它不占用空间? [英] How can I hide an HTML table row <tr> so that it takes up no space?

查看:662
本文介绍了如何隐藏HTML表格行< tr>所以它不占用空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何隐藏HTML表格列< tr> ,以免占用空间?我有几个< tr> 设置为 style =display:none;

How can I hide an HTML table row <tr> so that it takes up no space? I have several <tr>'s set to style="display:none;", but they still affect the size of the table and the table's border reflects the hidden rows.

推荐答案

我真的很想看看你的TABLE的样式。例如。 border-collapse

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.

这篇关于如何隐藏HTML表格行&lt; tr&gt;所以它不占用空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆