如何使用CSS使表格中的分隔线/边框消失? [英] How to make separating lines/borders in a table disappear with CSS?
本文介绍了如何使用CSS使表格中的分隔线/边框消失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个简单的HTML表,希望分隔线(/边框?)消失. 所需的最终结果是一个除实际文本外不可见的表.
I have a simple HTML table, and I wish to have the separating lines (/ borders?) disappear. The desired end result is a table that is invisible except for the actual text.
我尝试将"border"属性设置为0,但无济于事.我应该使用什么正确的CSS属性?
I've tried setting the "border" attribute to 0, didn't help. What is the correct CSS attribute that I should use?
推荐答案
table, tr, td, th {
border: 0;
}
这篇关于如何使用CSS使表格中的分隔线/边框消失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文