카테고리 스타일 질문드립니다. > 그누4 질문답변

그누4 질문답변

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

카테고리 스타일 질문드립니다. 정보

카테고리 스타일 질문드립니다.

본문

이미지의 폰트 사이즈와 색상을 수정하고싶은데 영힘드네요 ㅠㅠㅠ
2시간동안 고민고민하다가 결국 글 올립니다 ㅠㅠㅠ

아래는 현재 소스입니다.


<!-- 카테고리&관리버튼 -->
<? if ($is_category) { ?>
<? if (!$wr_id) {  ?>
<? 
    $cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
    $cnt = 1;
    $cnt0 = 0;
    $bb_s=""; $bb_e="";
    $b_s=""; $b_e="";
    $arr = explode("|", $board[bo_category_list] ); // 구분자가 , 로 되어 있음
    $str = "&nbsp;<span style='font-size:11px; color:#D2D2D2;'>|</span>&nbsp;";
    for ($i=0; $i<count($arr); $i++)
        if (trim($arr[$i]))  {
        if ($sca == $arr[$i]) { $cnt0++; $b_s="<b>" ; $b_e="</b>"; } else {$b_s=""; $b_e="";}
            $str .= " <a href='./board.php?bo_table=$bo_table&sca=".urlencode($arr[$i])."'>$b_s$arr[$i]$b_e</a>&nbsp;&nbsp;<span style='font-size:11px; color:#D2D2D2;'>|</span>&nbsp;";

if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
    $cnt++;
    }
    if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
  <?echo "  ";echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'>전체</a><?=$bb_e?> <span style="font-size:8pt; color=#AEAEAE;">(<?=number_format($total_count)?>)</span>
  <?=$str?></td>
  <? } ?>
  <? } ?>
      <td align="right"><span style="font-size:8pt;"><font face="Tahoma" color="#999999">Total. <?=number_format($total_count)?></font></span>
          <? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
          <? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" border="0" align="absmiddle"></a><?}?></td>
    </tr>
</table>
  • 복사

댓글 전체

카테고리 항목의 폰트색상과 사이즈 수정을 원하시는 듯해서 ....

원하시는 색상과 사이즈를 14번째줄(?) <span style='font-size:11px; color=#f60'>과 <span style='font-size:11px; color=#ccc'>에서 수정을 하시면 될듯하네요.


 <!-- 카테고리&관리버튼 -->
<? if ($is_category) { ?>
<? if (!$wr_id) {  ?>
<? 
    $cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
    $cnt = 1;
    $cnt0 = 0;
    $bb_s=""; $bb_e="";
    $b_s=""; $b_e="";
    $arr = explode("|", $board[bo_category_list] ); // 구분자가 , 로 되어 있음
    $str = "&nbsp;<span style='font-size:11px; color:#D2D2D2;'>|</span>&nbsp;";
    for ($i=0; $i<count($arr); $i++)
        if (trim($arr[$i]))  {
        if ($sca == $arr[$i]) { $cnt0++; $b_s="<span style='font-size:11px; color=#f60'><b>" ; $b_e="</b></span>"; } else {$b_s="<span style='font-size:11px; color=#ccc'>"; $b_e="</span>";}
            $str .= " <a href='./board.php?bo_table=$bo_table&sca=".urlencode($arr[$i])."'>$b_s$arr[$i]$b_e</a>&nbsp;&nbsp;<span style='font-size:11px; color:#D2D2D2;'>|</span>&nbsp;";

if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
    $cnt++;
    }
    if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
  <?echo "  ";echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'>전체</a><?=$bb_e?> <span style="font-size:8pt; color=#AEAEAE;">(<?=number_format($total_count)?>)</span>
  <?=$str?></td>
  <? } ?>
  <? } ?>
      <td align="right"><span style="font-size:8pt;"><font face="Tahoma" color="#999999">Total. <?=number_format($total_count)?></font></span>
          <? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
          <? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" border="0" align="absmiddle"></a><?}?></td>
    </tr>
</table>
© SIRSOFT
현재 페이지 제일 처음으로