최근게시물 글자색 변경.... > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최근게시물 글자색 변경.... 정보

최근게시물 글자색 변경....

본문

아래 홈페이지에서
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&amp;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)&nbsp;</div>
            </div>
           
            <div style='clear:both; margin:5px;'></div>
    ";

}
?>

<? if (count($list) == 0) { ?>
<div>게시물이 없습니다.</div>
<? } ?>

이 코드중 뭘 고쳐야 폰트가 검정색으로 변하나요??

댓글 전체

style에서 ctview1 의 font관련 color입니다.
일반color 링크관련color정의가 있네요..

아무색으로나 바꿔보시면 바꾸신 색이 어찌 적용되는지 나올듯한데요....
문제는

div.ctview1 {
    text-align:left;
    font:12px Gulim, "굴림", tahoma;
    margin:5px 0px 5px 5px;
    color:#606060;
    letter-spacing:-0.04em;

이부분에서 color를 바꿔도 색이 그대로 나와요 ㅠㅠ
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT