테이블에 폰트 변경하기 정보
테이블에 폰트 변경하기본문
<?
echo <<<HEREDOC
<table>
<tr>
<td width='156' background='../pg/skin/latest/common/img/11.jpg'>
<table width='136 ' align='center'>
<tr>
<td bgcolor='#FFFFFF' align='center'>
<a href="" onmouseout="javascript:hideLayer('menu{$Count}');" onmouseover="javascript:showLayer('menu{$Count}');">
<img src="$image_url1" hspace="0" width="140" height="100" VSPACE="0" border="0"></a></td>
</tr>
</table>
<table width='136' align='center' cellpadding='0' cellspacing='0' border='0'>
<tr><td class='p11' height='26' align='center'>{$icon}<a href='{$list[$i]['href']}'>{$list[$i][wr_8]} / {$list[$i][wr_9]}<br><b>{$list[$i][wr_10]}만원</b>
</td></tr>
<tr><td height='12' align='center'> </td></tr>
</table>
</td>
</tr>
</table>
HEREDOC;
?>
최신글 소스인데요
<td class='p11' height='26' align='center'>{$icon}<a href='{$list[$i]['href']}'>{$list[$i][wr_8]} / {$list[$i][wr_9]}<br><b>{$list[$i][wr_10]}만원</b>
이 부분에서 폰트를 바꾸고 싶습니다. class='p11' 을 추가 했는데도 전혀 작동이 안되네요.
클래스 p11 스타일은 추가했구요.
<? ?> 안에 있어서 작동을 안하는지...
<table> </table> 내용만 잘라서 새 페이지 만들어서 해보면 잘되거든요..
어떻게 하면 좋을 까요?? ^^ 부탁드립니다.
echo <<<HEREDOC
<table>
<tr>
<td width='156' background='../pg/skin/latest/common/img/11.jpg'>
<table width='136 ' align='center'>
<tr>
<td bgcolor='#FFFFFF' align='center'>
<a href="" onmouseout="javascript:hideLayer('menu{$Count}');" onmouseover="javascript:showLayer('menu{$Count}');">
<img src="$image_url1" hspace="0" width="140" height="100" VSPACE="0" border="0"></a></td>
</tr>
</table>
<table width='136' align='center' cellpadding='0' cellspacing='0' border='0'>
<tr><td class='p11' height='26' align='center'>{$icon}<a href='{$list[$i]['href']}'>{$list[$i][wr_8]} / {$list[$i][wr_9]}<br><b>{$list[$i][wr_10]}만원</b>
</td></tr>
<tr><td height='12' align='center'> </td></tr>
</table>
</td>
</tr>
</table>
HEREDOC;
?>
최신글 소스인데요
<td class='p11' height='26' align='center'>{$icon}<a href='{$list[$i]['href']}'>{$list[$i][wr_8]} / {$list[$i][wr_9]}<br><b>{$list[$i][wr_10]}만원</b>
이 부분에서 폰트를 바꾸고 싶습니다. class='p11' 을 추가 했는데도 전혀 작동이 안되네요.
클래스 p11 스타일은 추가했구요.
<? ?> 안에 있어서 작동을 안하는지...
<table> </table> 내용만 잘라서 새 페이지 만들어서 해보면 잘되거든요..
어떻게 하면 좋을 까요?? ^^ 부탁드립니다.
댓글 전체

인라인 방식으로 태그 자체에 스타일을 지정하시면 되지 않을까 싶네요.
감사합니다. 태그를 몰랐네요 <font face="함초롬돋움"> 이렇게 바로 쓰면 되네요 ㅎㅎ

그 방법보다는
최신글 소스인데요
<td class='p11' height='26' align='center' style="font-family:함초롬돋움">{$icon}<a href='{$list[$i]['href']}'>{$list[$i][wr_8]} / {$list[$i][wr_9]}<br><b>{$list[$i][wr_10]}만원</b>
와 같이 적용하시는 것이 좋은데요. 윈도우 기본폰트가 아닌 경우는 폰트설치가 되어 있지 않는 컴퓨터에서는 기본폰트로 보여지므로 이 부분을 생각해서 적용하세요.
최신글 소스인데요
<td class='p11' height='26' align='center' style="font-family:함초롬돋움">{$icon}<a href='{$list[$i]['href']}'>{$list[$i][wr_8]} / {$list[$i][wr_9]}<br><b>{$list[$i][wr_10]}만원</b>
와 같이 적용하시는 것이 좋은데요. 윈도우 기본폰트가 아닌 경우는 폰트설치가 되어 있지 않는 컴퓨터에서는 기본폰트로 보여지므로 이 부분을 생각해서 적용하세요.