简体   繁体   中英

Table border-bottom at rows

I try to put a border-bottom at the table-rows but they don't show up. Why is that?

http://www.mysecretathens.gr/Sera/dates.html

I think my code is pretty simple putting a class to ther tr element.

<tr class="line">

table tr.line {border-bottom: 1px solid #B4B5B0;}

You can try this:

tr.line td{ 
border-bottom: 1px solid #B4B5B0; 
}

You can't put borders on tr elements. You have to put them on td

Change your style to:

tr.line td{ border-bottom: 1px solid #B4B5B0;}

在表格元素中添加“边框折叠:折叠”样式,这将显示行边框

在表格单元格上执行此操作,它适用于所有浏览器。

table tr.line td {border-bottom: 1px solid #B4B5B0;}

if you have a single table on the page, you may try;

td{
  border-bottom: solid 1px #B4B5B0;
}

or if you have multiple tables, use class, like;

.your_table_class td{
  border-bottom: solid 1px #B4B5B0;
}

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