なぜ私の垂直方向の間隔が水平方向の間隔よりも大きいように見えるのか分かりません。適用する必要がある隠しCSSスタイルはありますか?テーブルが水平よりも垂直に大きい領域
サンプルコードです(以下、または直接リンク:https://www.w3schools.com/code/tryit.asp?filename=FGK16ROO32ZA)。あなたは左のセル間のスペースを見ると、右狭いですが、セル上部と下部との間のスペースが大きいことができます。
body {
margin: 0px;
}
table,
th,
tr,
td {
border: 0px;
border-spacing: 0px;
border-padding: 0px;
}
img {
width: 128px;
height: 128px;
}
<table>
<tr>
<th><img src="https://www.elie.net/image/public/1495321502/learn-web-security-with-google.png"></th>
<th><img src="https://www.elie.net/image/public/1495321502/learn-web-security-with-google.png"></th>
<th><img src="https://www.elie.net/image/public/1495321502/learn-web-security-with-google.png"></th>
</tr>
<tr>
<td><img src="https://www.elie.net/image/public/1495321502/learn-web-security-with-google.png"></td>
<td><img src="https://www.elie.net/image/public/1495321502/learn-web-security-with-google.png"></td>
<td><img src="https://www.elie.net/image/public/1495321502/learn-web-security-with-google.png"></td>
</tr>
<tr>
<td><img src="https://www.elie.net/image/public/1495321502/learn-web-security-with-google.png"></td>
<td><img src="https://www.elie.net/image/public/1495321502/learn-web-security-with-google.png"></td>
<td><img src="https://www.elie.net/image/public/1495321502/learn-web-security-with-google.png"></td>
</tr>
</table>
'border-padding'プロパティはありません – j08691