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

查看:18
本文介绍了如何隐藏 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 样式.例如.边框折叠"

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天全站免登陆