코멘트 내용 스타일 시트 적용하는법. 정보
코멘트 내용 스타일 시트 적용하는법.본문
if (strstr($list[$i][wr_option], "secret")) echo "<span style='color:#ff6600;'>*</span> ";
$str = $list[$i][content];
if (strstr($list[$i][wr_option], "secret"))
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
----------------------------------------------------------------------------
$str = $list[$i][content];
윗 코멘트 내용을 스타일 시트 적용하려는데 에러나네요.
아래와 같이 했더니 에러납니다..왜그럴까요?
$str = "<span class='small' style='color:#ffffff;'>$list[$i][content];</span>";
$str = $list[$i][content];
if (strstr($list[$i][wr_option], "secret"))
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
----------------------------------------------------------------------------
$str = $list[$i][content];
윗 코멘트 내용을 스타일 시트 적용하려는데 에러나네요.
아래와 같이 했더니 에러납니다..왜그럴까요?
$str = "<span class='small' style='color:#ffffff;'>$list[$i][content];</span>";
댓글 전체
비밀글 내용을 흰색으로 할 예정이신가요?
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
위에서 color:#fff 으로 변경.확인 해 보세요. * 는 기존색 유지
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
위에서 color:#fff 으로 변경.확인 해 보세요. * 는 기존색 유지
비밀글이 아니라 코멘트 내용을 하얀색으로 바꾸는것입니다.
$list[$i][content]
$list[$i][content]
방법1
$str = $list[$i][content];
$str = "<span class='small' style='color:#fff;'>$str</span>"; // 추가
방법2
$str = "<span class='small' style='color:#fff;'>{$list[$i][content]}</span>";
둘 중 하나 선택 사용
$str = $list[$i][content];
$str = "<span class='small' style='color:#fff;'>$str</span>"; // 추가
방법2
$str = "<span class='small' style='color:#fff;'>{$list[$i][content]}</span>";
둘 중 하나 선택 사용
늦은밤 답변 감사드립니다^^ 잘되네요