리스트에서 띄어쓰기가 가능하게 하는방법이 있나요?

리스트에서 띄어쓰기가 가능하게 하는방법이 있나요?

QA

리스트에서 띄어쓰기가 가능하게 하는방법이 있나요?

답변 2

본문

현재 내용에서 HTML로 작성하고 리스트를 보면 한줄로 쭉 나오는데 ..

HTML 즉 .. <br/> 태그가 먹히게 하는방법이 있나요 ..

 

현재 코드상황입니다 ㅠ.. 도와주세요!!

 

 

 

        <td class="subject" valign="top" style="padding:15 0 15 0;">

            <?
   //사진 가져오기
   $pic_width= 100; //사진의 보여질 가로
   $pic_height = 160; //사진의 보여질 세로
   $pic = "";
   $check = @getimagesize($g4[path]."/data/file/$bo_table/".$list[$i][file][0][file]);

   if($list[$i][file][0][file] and $check[0] >0){
    $pic = makeThumbs($g4[path]."/data/file/$bo_table", $list[$i][file][0][file], $pic_width, $pic_height, $list[$i][subject]);
   }else{
    $img_tags = explode("src=",$list[$i][wr_content]);
    $img_tag = explode(" ",$img_tags[1]);
    $img_url = explode(">",$img_tag[0]);
    $real_img_url = $img_url[0];
    $clear_img_url =  str_replace('"','',$real_img_url);
    if($clear_img_url){
     $pic = "<img src=$clear_img_url width=$pic_width height=$pic_height border=0>";
    }
   }

   if($pic == ""){$pic = "<img src=$board_skin_path/img/nopic.jpg width=$pic_width height=$pic_height border=0>";}

   //사진과 제목 테이블
   echo "
   <Table width=100% height=100% border=0 cellspacing=0 cellpadding=0 class=board_list2>
   <tr>
    <td width=$pic_width height=$pic_height style=padding-right:15;><a href='{$list[$i][href]}'>$pic</a></td>
    <td valign=top>";

     //제목 테이블
     echo "
     <Table width=100%  border=0 cellspacing=0 cellpadding=0 valign=top>
     <tr>
      <td valign=top>";

       echo $nobr_begin;
       echo $list[$i][reply];
       echo $list[$i][icon_reply];
       if ($is_category && $list[$i][ca_name]) {
        echo "<span class=small><font color=gray>[<a href='{$list[$i][ca_name_href]}'>{$list[$i][ca_name]}</a>]</font></span> ";
       }

       if ($list[$i][is_notice])
          echo "<a href='{$list[$i][href]}'><span class=web_font12><b>{$list[$i][subject]}</b></span></a>";
       else
          echo "<a href='{$list[$i][href]}' class=btn12><span class=web_font14><b>{$list[$i][subject]}</b></span></a>";

       //if ($list[$i][comment_cnt])
       // echo " <a href=\"{$list[$i][comment_href]}\"><span class='comment'>{$list[$i][comment_cnt]}</span></a>";

       // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
       // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

       //echo " " . $list[$i][icon_new];
       //echo " " . $list[$i][icon_file];
       //echo " " . $list[$i][icon_link];
       //echo " " . $list[$i][icon_hot];
       //echo " " . $list[$i][icon_secret];
       echo $nobr_end;
     
     $wr_content = cut_str(strip_tags($list[$i][wr_content]),300);

     echo "
     </td>
     </tr>
     <tr>
      <td style=line-height:160%; style=padding-top:10px;><span><a href='{$list[$i][href]}'>".$wr_content."</a></span></td>
     </tr>
     </table>";
     //제목 테이블 끝

   echo "
    </td>
   </tr>
   </table>
   ";
   //사진과 제목 테이블 끝
            ?>

        </td>​

이 질문에 댓글 쓰기 :

답변 2

그건 내용입력된정보를 가져오는거고

에디터경우 엔터를 치면 당연히 <br> 태그가 먹히는데

 

html 소스경우 붙여넣기하셧다면 안되고 게시판설정에서 에디터사용에 체크해서 쓰시면될듯합니다

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 129,119
© SIRSOFT
현재 페이지 제일 처음으로