xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

shit IE

table border bug & border-collapse bug



> `border-collapse: collapse;`

table {
     100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 13px;
    font-weight: normal;
    overflow: hidden;
    margin-bottom: 15px;
    color: #727272;
}


IE table border border-collapse bug?

https://stackoverflow.com/questions/16682591/border-collapse-not-working-in-ie10


table{
    border-collapse: collapse;
}
table td{
    border: 1px solid black;
}

solution


table{
    border-spacing: 0px;
    border-top: 1px solid black;
    border-right: 1px solid black;
}
table td{
    border-left: 1px solid black;
    border-bottom: 1px solid black;
}

https://stackoverflow.com/questions/15747859/border-not-appearing-in-ie9-ie10


table{
    border-top:1px solid #000;
}

tr{
    border-left:1px solid #000;
    border-bottom:1px solid #000;
}

td{
    border-right:1px solid #000;
}

https://stackoverflow.com/questions/19706555/ie-table-cell-border-bug-with-colspan-set


solution


/*
table>tr>td:nth-of-type(n) {
    border-left: 0;
    border-bottom: 0;
}

*/



/* IE & shit table &  border-collapse: collapse; */


table {
    border-spacing: 0px;
    border-top: 1px solid #f0f0f0;
    border-right: 0;
}

table td {
    border-left: 1px solid #f0f0f0;
    border-bottom: 0;
    border-right: 0;
}

tbody>tr>td:nth-last-of-type(1) {
    border-right: 1px solid #f0f0f0;
}

tbody>tr:nth-last-of-type(1)>td {
    border-bottom: 1px solid #f0f0f0;
}


https://stackoverflow.com/questions/16682591/border-collapse-not-working-in-ie10

https://stackoverflow.com/questions/9240772/border-collapse-issue-in-ie-8-compatibility-mode

https://stackoverflow.com/questions/19706555/ie-table-cell-border-bug-with-colspan-set

https://css-tricks.com/almanac/properties/b/border-collapse/

http://csarven.ca/tr-border-trick-for-ie
http://forums.mozillazine.org/viewtopic.php?t=157897
https://bugs.chromium.org/p/chromium/issues/detail?id=356132

https://robert.accettura.com/blog/2007/04/04/ie-table-border-bug/

原文地址:https://www.cnblogs.com/xgqfrms/p/9830637.html