채택완료
상품 리스트에서 시중가와 판매가를 한줄로 표기하고 싶습니다.
현재 소스에는
Copy
<? if ($this->view_it_icon) { echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n"; } if ($this->view_it_id) { echo "<div class=\"sct_id\"><".stripslashes($row['it_id'])."></div>\n"; } if ($this->href) { echo "<div class=\"sct_txt\"><a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n"; } if ($this->view_it_name) { echo stripslashes($row['it_name'])."\n"; } if ($this->href) { echo "</a></div>\n"; } if ($this->view_it_basic && $row['it_basic']) { echo "<div class=\"sct_basic\">".stripslashes($row['it_basic'])."</div>\n"; } if ($this->view_it_cust_price || $this->view_it_price) { echo "<div class=\"sct_cost\">\n"; if ($this->view_it_cust_price && $row['it_cust_price']) { echo "<strike>".display_price($row['it_cust_price'])."</strike>\n"; } if ($this->view_it_price) { echo display_price(get_price($row), $row['it_tel_inq'])."\n"; } echo "</div>\n"; }?>
위와 같이 되어있는데, 줄바꿈이 됩니다. 혹시 줄바꿈 없이 시중가격-판매가격이 나란히 노출될 수 있는 방법 없을까요?
|
답변 1개 / 댓글 1개
채택된 답변
+20 포인트
2014-10-22 (수) 06:12:14
상품목록 스킨 10번을 쓰시는거라면
/skin/shop/basic/style.css 에서
/* 상품 목록 스킨 10 */
.sct_10 .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
위 부분을 아래처럼 해보세요.
.sct_10 .sct_cost strike {display:inline-block;margin:0 0 5px;color:#999;font-weight:normal}
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.