简体   繁体   中英

How to make separating lines/borders in a table disappear with CSS?

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.

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;
}

I think this is what you are looking for.

<table border="0" cellpadding="0" cellspacing="0">

Cheers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM