간단한듯 한데 잘 안되는 테이블 문제 입니다. 채택완료
<table border="0" cellspacing="1" cellpadding="0" bgcolor='blue'>
<tr>
<td width="600" height="50" valign='top'>
<table border="0" cellspacing="0" cellpadding="0" bgcolor='ffffff'>
<tr>
<td width="200" height="100" valign='top'>1</td>
<td width="200" height="100" valign='top'>1</td>
<td width="200" height="100" valign='top'>1</td>
</tr>
<tr>
<td width="200" height="100" valign='top'>1</td>
<td width="200" height="100" valign='top'>1</td>
<td width="200" height="100" valign='top'>1</td>
</tr>
</table>
</td>
</tr>
</table>
첫번째 테이블에서 배경색을 파란색으로 하고 두번째 테이블에서 배경색을 흰색으로 해서 파란색선들을 만들려고 합니다.
문제는 <td> 부분에 bgcolor='ffffff' 를 넣지 않고 파란색선들을 만들어야 하는데 이게 잘 안되네요.
실선은 파란색 <td>부분 배경색은 흰색 이어야 합니다.
방법이 없을까요??
답변 5개

</p>
<p> <table border="0" cellspacing="0" cellpadding="0" bgcolor='blue'>
<tr>
<td width="600" height="50" valign='top'>
<table border="0" cellspacing="1" cellpadding="0">
<tr bgcolor='ffffff'>
<td width="200" height="100" valign='top'>1</td>
<td width="200" height="100" valign='top'>1</td>
<td width="200" height="100" valign='top'>1</td>
</tr>
<tr bgcolor='ffffff'>
<td width="200" height="100" valign='top'>1</td>
<td width="200" height="100" valign='top'>1</td>
<td width="200" height="100" valign='top'>1</td>
</tr>
</table>
</td>
</tr>
</table></p>
<p>
댓글을 작성하려면 로그인이 필요합니다.
<style>
table {
width: 100%;
border: 1px solid #444444;
border-collapse: collapse;
}
th, td {
padding: 10px;
}
</style>
<table>
<tbody>
<tr bgcolor="#0000FF">
<td style=" border: 1px solid #fff">1</td><td style=" border: 1px solid #fff">1</td><td style=" border: 1px solid #fff">1</td>
</tr>
<tr>
<td style=" border: 1px solid #0000FF">1</td><td style=" border: 1px solid #0000FF">1</td><td style=" border: 1px solid #0000FF">1</td>
</tr>
</tbody>
</table>
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인