简体   繁体   English

HTML CSS 神秘底部边框

[英]HTML CSS Mysterious Bottom Border

I was building some tables and went through a lot of iterations.我正在构建一些表并经历了很多迭代。 At some point I picked up this weird bottom border on my first row ( https://jujusupply.com/pages/customer-gift-notes ) and I'm not sure where it's coming from or how to get rid of it?在某些时候,我在第一行( https://jujusupply.com/pages/customer-gift-notes )上捡到了这个奇怪的底部边框,我不确定它来自哪里或如何摆脱它? It's just a very simple HTML table.它只是一个非常简单的 HTML 表格。

 table { width: 100%; } td { text-align: center; font-size: em(14px); font-style: italic; padding: 12px; background-color: #eeeeee; border: 8px solid white; height: 200px; } td:hover { background-color: #ffde17; }
 <div style="overflow-x: auto;"> <table> <tbody> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> </tbody> </table> </div>

It's from here :它来自这里:

media="all"
tr:first-child th:after, tr:first-child td:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: -15px;
    right: 15px;
    border-bottom: 1px solid #1c1d1d;
}

in the theme.scss.css filetheme.scss.css文件中

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

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