次のCSSを使用して<tr>
完全に境界線を付けています。
<style type="text/css">
tr.top td { border-top: thin solid black; }
tr.bottom td { border-bottom: thin solid black; }
tr.row td:first-child { border-left: thin solid black; }
tr.row td:last-child { border-right: thin solid black; }
</style>
これはMozillaFirefoxで完全に機能しますが、Internet Explorerでは<td>
、次のスナップショットに示すように、最後の右側に隣接していません。
Firefoxでは、次の表が表示されます。
ただし、Internet Explorer(8)では、次のように表が表示されます。
上記のCSSでは、このCSSクラスtr.row td:last-child { border-right: thin solid black; }
はIEでは機能しないことを意味します。これに対する解決策は何ですか?IE8を使用しています。