Edit 2
伊拉斯谟有更好的一行below
如果没有棘手的CSS Select 器和额外的标记等等.
如下所示可能会起作用(使用CSS Select 器):
table {
border:none;
border-collapse: collapse;
}
table td {
border-left: 1px solid #000;
border-right: 1px solid #000;
}
table td:first-child {
border-left: none;
}
table td:last-child {
border-right: none;
}
Edit个
要澄清@Jeroen的 comments 打击,你真正需要的只是:
table { border: none; border-collapse: collapse; }
table td { border-left: 1px solid #000; }
table td:first-child { border-left: none; }