[英]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 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. 您不能在tr元素上加边框。 You have to put them on td 你必须把它们放在TD上
Change your style to: 将样式更改为:
tr.line td{ border-bottom: 1px solid #B4B5B0;} 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;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.