0
我有下面的代码主题:我如何可以设置对齐边框与其他边界
table.alt {
border-collapse: separate;
}
table.alt tbody tr td {
border: solid 1px #e5e5e5;
border-left-width: 0;
border-top-width: 0;
}
table.alt tbody tr td:first-child {
border-left-width: 1px;
}
table.alt tbody tr:first-child td {
border-top-width: 1px;
}
table.alt thead {
border-bottom: 0;
}
table.alt tfoot {
border-top: 0;
}
当我我的CSS添加到我的HTML中,边框没有正确对齐。我的代码是:
table.alt tr th.rightAlignBorderLeft {
text-align: right;
border-left: solid 1px #e5e5e5;
}
以下是截图:
我不想设定边界崩溃崩溃,因为改变我的默认主题的代码可能会弄乱我的网页。 我该如何解决这个问题?
编辑: 这是我的(新)小提琴:http://jsfiddle.net/ru1923mf/1/
你能分享一些html吗?这很难没有它... – 2014-10-08 15:08:06
感谢您的答案。 http://sudrap.org/paste/text/392202/ – nikel 2014-10-08 15:09:22
@nikel你可以请发布**相关的HTML,在这里的问题? – George 2014-10-08 15:12:02