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

table 소스좀 봐주세요! 채택완료

이우진 8년 전 조회 2,523


 

 

쇼핑몰을 만들고잇습니다만.. 테이블을 만들어서 가격표시해주려고 하는데요 빨간박스 보시면 왜 저렇게 띄어지는건지 이해가 안됩니다. 아래는 소스입니다.

 

CSS

/* 장바구니 */

.cart_total_list th {width:1145px;padding:20px 0;text-align:center;border-top:1px solid #040404;letter-spacing:-0.1em;font-size:1.5em}

 

HTML

<div class="cart_total_list">

<table>

<thead>

<tr>

<th scope="col">총 상품금액</th>

<th scope="col">배송비</th>

<th scope="col">총 결제금액</th>

<th scope="col">지급예정 적립금</th>

</tr>

</thead>

<tbody>

<tr>

<th scope="col"><?php echo number_format($tot_sell_price); ?>원</th>

<th scope="col">+<?php echo number_format($send_cost); ?>원</th>

<th scope="col"><?php echo number_format($tot_price); ?>원</th>

<th scope="col"><?php echo number_format($tot_point); ?>원</th>

</tr>

</tbody>

</table>

</div>

 

답변부탁드립니다!

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

답변 1개

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

올려주신 css는 이상이 없어보이는데 아마 다른쪽에서 영향을 받은거 같은데

f12를 눌리셔서 css가 다른게 혹시 적용된게 있나 확인해보세요

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

답변에 대한 댓글 1개

이우진
8년 전
.cart_total_list table {width:100%;border-collapse:collapse;border-spacing:0}

감사합니다. 덕분에 다른 부분 뒤져봤는데 위 소스 추가해주니까 해결됐네요.
오늘도 문제점 뭔지 하나 배워갑니다!!!

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

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

로그인