简体   繁体   English

CSS显示表中的边框

[英]Border in CSS display-table

I want to add a border before my last row and can't find a way without breaking my design. 我想在最后一行之前添加边框,并且在不破坏设计的情况下找不到方法。 Every input or suggestions are appreciated. 每个输入或建议,表示赞赏。

Fiddle 小提琴

see jsfiddle

Move the <div class="tt-entry-hr"></div> outside of the span. <div class="tt-entry-hr"></div>到跨度之外。

Updated Fiddle 更新的小提琴

Add this to your CSS: And delete that -hr div. 将此添加到您的CSS:并删除该-hr div。

.tt-container > .tt-entry-row:last-child > .tt-entry {
  border-top:thin solid white;
}

Adjust to suit. 调整以适合。

Updated fiddle 更新的小提琴

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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