1
여기에서 달성하고자하는 것 : http://jsfiddle.net/LxwXc/3/td에서 테두리. html css 문제
이 코드는 웹 사이트에있을 때 tds 사이에 간격이 있습니다. 어떤 아이디어가 될 수 있습니까? 난 그냥 ... 미친려고하고
.goodtable td
{
border-bottom: 1px solid black;
border-left: none;
border-right: none;
border-top: none;
padding: 10px;
}
</style>
<table class="goodtable" cellpadding="10" cellspacing="8">
<tr>
<td width="150px">Username:</td>
<td width="150px">opera</td>
</tr>
<tr>
<td>Gender:</td>
<td>Male</td>
</tr>
<tr>
<td>Age:</td>
<td>19 (1992-01-01)</td>
</tr>
<tr>
<td>Country, city:</td>
<td>hey, Afghanistan</td>
</tr>
<tr>
<td>Height:</td>
<td>187 centimetres</td>
</tr>
</table>
예, 알아요. 그렇다면 왜 jsFiddle에서 작동합니까? jsFiddle에서 작동하도록하려면 .css에 무엇을 추가해야합니까? –
@hey JSFiddle.net은'table {border-collapse : collapse; }'같은 CSS를 재설정 CSS에서. 나는 그것을 내 대답에 추가 할 것이다. –