최근게시물 글자색 변경.... 정보
최근게시물 글자색 변경....본문
아래 홈페이지에서
http://madeinweb.co.kr/~ff498
가운데 정보조행기 최근게시물 내용중
폰트 색깔이 검정으로 안나오는데...
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<style>
.imgBoxContent1 {
border:1px solid #dddddd;
width:90px;
height:70px;
}
div.ctview1 {
text-align:left;
font:12px Gulim, "굴림", tahoma;
margin:5px 0px 5px 5px;
color:#606060;
letter-spacing:-0.04em;
}
div.ctview1 a:hover {
color:#3773eb;
text-decoration:none;
}
.ctviewDate1 {
margin-top:3px;
font:11px "굴림", tahoma; color:#888;
letter-spacing:-0.04em;
}
</style>
<?
for ($i=0; $i<count($list); $i++)
{
$title = get_text($list[$i][wr_subject]);
$content = cut_str(strip_tags($list[$i][wr_content]),166,"...");
// 태그 웹표준으로 변경
$content = str_replace("<P>", "", $content);
$content = str_replace("</P>", "", $content);
$content = str_replace("<BR>", "", $content);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}";
$upday = cut_str($list[$i][wr_datetime], 10, "");
$tmp = explode("-", $upday);
$upday = $tmp[0]."년 ".$tmp[1]."월 ".$tmp[2]."일";
echo "
<div style='float:left;'>
<a href='$href'>
<img src='{$img}' class='imgBoxContent1' alt='' />
</a>
</div>
<div style='float:left;' class='ctview1'>
<a href='$href'>
<b>{$list[$i][subject]}</b> {$list[$i]['comment_cnt']}
<br />
<span>$content</span>
</a>
<div class='ctviewDate1'>($upday) </div>
</div>
<div style='clear:both; margin:5px;'></div>
";
}
?>
<? if (count($list) == 0) { ?>
<div>게시물이 없습니다.</div>
<? } ?>
이 코드중 뭘 고쳐야 폰트가 검정색으로 변하나요??
http://madeinweb.co.kr/~ff498
가운데 정보조행기 최근게시물 내용중
폰트 색깔이 검정으로 안나오는데...
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<style>
.imgBoxContent1 {
border:1px solid #dddddd;
width:90px;
height:70px;
}
div.ctview1 {
text-align:left;
font:12px Gulim, "굴림", tahoma;
margin:5px 0px 5px 5px;
color:#606060;
letter-spacing:-0.04em;
}
div.ctview1 a:hover {
color:#3773eb;
text-decoration:none;
}
.ctviewDate1 {
margin-top:3px;
font:11px "굴림", tahoma; color:#888;
letter-spacing:-0.04em;
}
</style>
<?
for ($i=0; $i<count($list); $i++)
{
$title = get_text($list[$i][wr_subject]);
$content = cut_str(strip_tags($list[$i][wr_content]),166,"...");
// 태그 웹표준으로 변경
$content = str_replace("<P>", "", $content);
$content = str_replace("</P>", "", $content);
$content = str_replace("<BR>", "", $content);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}";
$upday = cut_str($list[$i][wr_datetime], 10, "");
$tmp = explode("-", $upday);
$upday = $tmp[0]."년 ".$tmp[1]."월 ".$tmp[2]."일";
echo "
<div style='float:left;'>
<a href='$href'>
<img src='{$img}' class='imgBoxContent1' alt='' />
</a>
</div>
<div style='float:left;' class='ctview1'>
<a href='$href'>
<b>{$list[$i][subject]}</b> {$list[$i]['comment_cnt']}
<br />
<span>$content</span>
</a>
<div class='ctviewDate1'>($upday) </div>
</div>
<div style='clear:both; margin:5px;'></div>
";
}
?>
<? if (count($list) == 0) { ?>
<div>게시물이 없습니다.</div>
<? } ?>
이 코드중 뭘 고쳐야 폰트가 검정색으로 변하나요??
댓글 전체
style에서 ctview1 의 font관련 color입니다.
일반color 링크관련color정의가 있네요..
아무색으로나 바꿔보시면 바꾸신 색이 어찌 적용되는지 나올듯한데요....
일반color 링크관련color정의가 있네요..
아무색으로나 바꿔보시면 바꾸신 색이 어찌 적용되는지 나올듯한데요....
문제는
div.ctview1 {
text-align:left;
font:12px Gulim, "굴림", tahoma;
margin:5px 0px 5px 5px;
color:#606060;
letter-spacing:-0.04em;
이부분에서 color를 바꿔도 색이 그대로 나와요 ㅠㅠ
div.ctview1 {
text-align:left;
font:12px Gulim, "굴림", tahoma;
margin:5px 0px 5px 5px;
color:#606060;
letter-spacing:-0.04em;
이부분에서 color를 바꿔도 색이 그대로 나와요 ㅠㅠ
a.haver 부위등도 바꿔보세요...