div 태그내에 bgcolor은 쓸수 없는건가요 ? 정보
div 태그내에 bgcolor은 쓸수 없는건가요 ?
본문
<Div id="Pop" style="position:absolute; left:300px; top:140px; width:600px; height:100px; z-index:91;display:none;">
<table cellpadding='0' cellspacing='0' border='0' bgcolor='#ffffff'>
<tr height="10"><td></td></tr>
</table>
<table cellpadding='0' cellspacing='1' border='0' bgcolor='#000000'>
<tr>
<td height="5">
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr height="5">
<td width="25%" bgcolor="#999900"></td>
<td width="25%" bgcolor="#999900"></td>
<td width="25%" bgcolor="#cc0033"></td>
<td width="25%" bgcolor="#009900"></td>
</tr>
</table>
</td>
</tr>
.
.
.
</div>
위에서 <td width="25%" bgcolor="#999900"> <- 요게 먹히질 않아서요 ?
<table cellpadding='0' cellspacing='0' border='0' bgcolor='#ffffff'>
<tr height="10"><td></td></tr>
</table>
<table cellpadding='0' cellspacing='1' border='0' bgcolor='#000000'>
<tr>
<td height="5">
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr height="5">
<td width="25%" bgcolor="#999900"></td>
<td width="25%" bgcolor="#999900"></td>
<td width="25%" bgcolor="#cc0033"></td>
<td width="25%" bgcolor="#009900"></td>
</tr>
</table>
</td>
</tr>
.
.
.
</div>
위에서 <td width="25%" bgcolor="#999900"> <- 요게 먹히질 않아서요 ?
댓글 전체
div 랑 상관없이 각, 태그에선, 다 되는데요,
위에서는, width 값이 없어서, 안나오는 걸 꺼에요.,. td 안에, 텍스트를 넣어 보세요.
그럼, 자동적으로, td 넓이가 주어져서., 색상이 나올껍니다..
잘못된 점을 말하면, width 값을, % 로 줬는데,, 뭐에 기준에, % 를 줬냐,, 이말입니다.
table 상위에, 넓이를 줘보세요..
그럼, 틀림없이 ~ 짠,! 하고 나올겁니다.
위에서는, width 값이 없어서, 안나오는 걸 꺼에요.,. td 안에, 텍스트를 넣어 보세요.
그럼, 자동적으로, td 넓이가 주어져서., 색상이 나올껍니다..
잘못된 점을 말하면, width 값을, % 로 줬는데,, 뭐에 기준에, % 를 줬냐,, 이말입니다.
table 상위에, 넓이를 줘보세요..
그럼, 틀림없이 ~ 짠,! 하고 나올겁니다.
네.. 케논협주곡님 감사합니다..
해결되었습니다..
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr height="5">
<td bgcolor="#0000cc"></td>
<td bgcolor="#999900"></td>
<td bgcolor="#cc0033"></td>
<td bgcolor="#009900"></td>
</tr>
</table>
해결되었습니다..
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr height="5">
<td bgcolor="#0000cc"></td>
<td bgcolor="#999900"></td>
<td bgcolor="#cc0033"></td>
<td bgcolor="#009900"></td>
</tr>
</table>