테스트 사이트 - 개발 중인 베타 버전입니다

수량버튼을 + - 가 양옆에 나오게 하고 싶은대요... 채택완료

smallanimal 9년 전 조회 13,032

수량버튼을 + - 가 양옆에 나오게 하고 싶은대요...

도대체 어디를 변경해야 하는지 ㅜ.ㅜ

버튼을 증가, 감소 대신 + -아이콘으로 바꾸려면 어떻게 해야 하나요??

도와주세요ㅜ.ㅜ

 

          <?php if ($is_orderable) { ?>
          <!-- 선택된 옵션 시작 { -->
          <section id="sit_sel_option">
           <?php
           if(!$option_item) {
            if(!$it['it_buy_min_qty'])
             $it['it_buy_min_qty'] = 1;
           ?>
           <ul id="sit_opt_added">
            <li class="sit_opt_list">
                <input type="hidden" name="io_type[<?php echo $it_id; ?>][]" value="0">
             <input type="hidden" name="io_id[<?php echo $it_id; ?>][]" value="">
             <input type="hidden" name="io_value[<?php echo $it_id; ?>][]" value="<?php echo $it['it_name']; ?>">
             <input type="hidden" class="io_price" value="0">
             <input type="hidden" class="io_stock" value="<?php echo $it['it_stock_qty']; ?>">
             <span class="sit_opt_subj"><?php echo $it['it_name']; ?></span>
             <span class="sit_opt_prc"></span>
             <div>
              <label for="ct_qty_<?php echo $i; ?>" class="sound_only"></label>
              <input type="text" name="ct_qty[<?php echo $it_id; ?>][]" value="<?php echo $it['it_buy_min_qty']; ?>" id="ct_qty_<?php echo $i; ?>" class="span1" placeholder="1">
               <button type="button" class="sit_qty_plus btn_frmline">증가</button>
               <button type="button" class="sit_qty_minus btn_frmline">감소</button>
             </div>

 

댓글을 작성하려면 로그인이 필요합니다.

답변 3개

채택된 답변
+20 포인트
l
9년 전

<button type="button" class="sit_qty_plus btn_frmline">증가</button> 

<button type="button" class="sit_qty_minus btn_frmline">감소</button>  

부분을

 

<button type="button" class="it_qty_plus btn btn-black btn-sm"><i class="fa fa-plus-circle fa-lg"></i></button>

<button type="button" class="it_qty_minus btn btn-black btn-sm"><i class="fa fa-minus-circle fa-lg"></i></button>

 아마 클래스를 맞춰줘야 할 듯 하네요.. 

<button type="button" class="sit_qty_plus btn_frmline"><i class="fa fa-plus-circle fa-lg"></i></button>

<button type="button" class="sit_qty_minus btn_frmline"><i class="fa fa-minus-circle fa-lg"></i></button>

 

증가 감소 글자 대신 아이콘을 넣어서 테스트해보세요

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

s
smallanimal
9년 전
그래도 올바른 방법으로 이용하라고 나와요.....ㅠ.ㅠ 에고.....

댓글을 작성하려면 로그인이 필요합니다.

9년 전

<button type="button" class="sit_qty_plus btn_frmline">증가</button> 
<button type="button" class="sit_qty_minus btn_frmline">감소</button> 

 

이 부분을

 

<button type="button" class="sit_qty_plus btn_frmline"> + </button> 
<button type="button" class="sit_qty_minus btn_frmline"> - </button> 
 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

s
smallanimal
9년 전
위 방법은 디자인이 영.... 아니라서요... ㅠㅡㅠ

댓글을 작성하려면 로그인이 필요합니다.

l
9년 전

<button type="button" class="sit_qty_plus btn_frmline">증가</button> 
<button type="button" class="sit_qty_minus btn_frmline">감소</button>  

부분을

 

<button type="button" class="it_qty_plus btn btn-black btn-sm"><i class="fa fa-plus-circle fa-lg"></i></button>

<button type="button" class="it_qty_minus btn btn-black btn-sm"><i class="fa fa-minus-circle fa-lg"></i></button>

 

증가 감소 글자 대신 아이콘을 넣어서 테스트해보세요

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

s
smallanimal
9년 전
수량증가버튼이 아이콘이 되기는하는대 클릭을 하면 올바른 형식이 아니라고 나와요,,,ㅜ.ㅜ

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인