如何从HTML表中删除特定的单元格? [英] How to remove particular cell from HTML table?
本文介绍了如何从HTML表中删除特定的单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设我有HTML表,并且想从HTML表中删除一个像这样的单元格:
Suppose I have HTML table and I want to remove one cell from HTML table something like this:
我已将单元格边框颜色更改为白色,因为整个表格的边框颜色均为黑色,因此它显示为灰色。问题是我无法删除表格边框,所以我使用了 border-collapse:collapse
I have changed cell border color to white since the border color of whole table is black so it is showing grey color. Problem is I can't remove table border so I have used border-collapse:collapse
所以我该如何更改这样使边框颜色保持黑色并且表格中没有出现单元格?
So how can I change it in such a way that border color remains black and cell is not appeared in table?
推荐答案
您可以通过设置可见性
到隐藏
。
CSS
td {
visibility: hidden;
}
这篇关于如何从HTML表中删除特定的单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文