.ec-base-table table { position:relative; margin:10px 0 0; border:1px solid #d7d5d5; border-top:0; color:#fff; line-height:1.5; } .ec-base-table.gLayoutFixed table { table-layout:fixed; } .ec-base-table.gLayoutFixed .gLayoutAuto table { table-layout:auto; } .ec-base-table table:before { position:absolute; top:0; left:0; display:block; content:""; width:100%; height:1px; background:#d7d5d5; } .ec-base-table thead th { padding:11px 0 10px; border-left:1px solid #dfdfdf; border-bottom:1px solid #dfdfdf; color:#353535; vertical-align:middle; font-weight:normal; background:#fbfafa; } .ec-base-table tbody th { padding:11px 0 10px 18px; border:1px solid #dfdfdf; border-bottom-width:0; color:#353535; text-align:left; font-weight:normal; background-color:#fbfafa; } .ec-base-table th { word-break:break-all; word-wrap:break-word; } .ec-base-table th:first-child { border-left:0; } .ec-base-table td { padding:11px 10px 10px; border-top:1px solid #dfdfdf; color:#353535; vertical-align:middle; word-break:break-all; word-wrap:break-word; } .ec-base-table td.clear { padding:0 !important; border:0 !important; } /* horizontal */ /* typeWrite */ .ec-base-table.typeWrite td { padding:8px 10px 7px; } .ec-base-table.typeWrite img { max-width:100% !important; height:auto !important; } /* vertical */ /* typeList */ .ec-base-table.typeList table { border-top:1px solid #d7d5d5; } .ec-base-table.typeList table:before { display:none; } .ec-base-table.typeList td { padding:8px 10px 7px; } .ec-base-table.typeList tfoot td { padding:15px 10px 17px; background:#fbfafa; } .ec-base-table .message { border:1px solid #d7d5d5; padding:50px 0; text-align:center; color:#757575; font-weight:bold; } .ec-base-table table + .message { margin:-1px 0 0; } .ec-base-table table td.message { padding:50px 0; } .ec-base-table .scroll .message { border:0; } /* scroll */ .ec-base-table.typeList .head td { padding:11px 0 10px; border-left:1px solid #dfdfdf; border-bottom:1px solid #dfdfdf; color:#353535; vertical-align:middle; text-align:center; background:#fbfafa; } .ec-base-table.typeList .head td:first-child { border-left:0; } .ec-base-table.typeList .scroll { position:relative; overflow-x:hidden; overflow-y:scroll; max-height:185px; min-height:100px; border:1px solid #d7d5d5; border-top-width:0; margin-top:-1px; } .ec-base-table.typeList .scroll table { border:0; margin:0; } .ec-base-table.typeList .scroll table:before { display:none; } .ec-base-table.typeList .scroll .message { border: 0; } /* thead - blind */ .ec-base-table thead.blind, .ec-base-table thead.blind th { display:none; } .ec-base-table thead.blind + tbody tr:first-child th, .ec-base-table thead.blind + tbody tr:first-child td { border-top-width:0; } /* Line */ .ec-base-table.typeList.gLine table { border-width:0; border-bottom-width:1px; } /* common */ /* border, background style none */ .ec-base-table.typeClear table:before { display:none; } .ec-base-table.typeClear table, .ec-base-table.typeClear th, .ec-base-table.typeClear td { border:0 none; background:none; } .ec-base-table.typeClear th { font-weight:bold; } /* border */ .ec-base-table.gBorder td { border-left:1px solid #dfdfdf; } .ec-base-table.gBorder td:first-child { border-left:0; } .ec-base-table.gBorder td.gClearLine { border-left:0; } .ec-base-table.typeList.gBorder tbody td { border-color:#eee; } /* align */ .ec-base-table .left { text-align:left; } .ec-base-table .center { text-align:center; } .ec-base-table .right { text-align:right; } .ec-base-table.typeList .center td, .ec-base-table.typeList td.center { padding-left:0; padding-right:0; } .ec-base-table.typeList .center td.left { padding-left:10px; } .ec-base-table.typeList .center td.right { padding-right:10px; } .ec-base-table .top th, .ec-base-table th.top, .ec-base-table .top td, .ec-base-table td.top { vertical-align:top; } .ec-base-table .middle th, .ec-base-table th.middle, .ec-base-table .middle td, .ec-base-table td.middle { vertical-align:middle; } /* form */ .ec-base-table img { vertical-align:middle; } @media print { .ec-base-table table:before { display:none; } }
기본형은 가로형 테이블 타입으로 제목이 좌측에 있습니다. td 내용란에 입력폼 태그가 없을 경우 사용합니다.
xxxxxxxxxx
<div class="ec-base-table">
<table border="1" summary="">
<caption>제목</caption>
<colgroup>
<col style="width:20%;" />
<col style="width:30%;" />
<col style="width:20%;" />
<col style="width:30%;" />
</colgroup>
<tbody>
<tr>
<th scope="row">제목</th>
<td>내용</td>
<th scope="row">제목<img src="//img.echosting.cafe24.com/skin/base_ko_KR/member/ico_required.gif" alt="필수" /></th>
<td>내용</td>
</tr>
<tr>
<td colspan="4">colspan="4" (셀 병합)</td>
</tr>
<tr>
<th scope="row">제목</th>
<td colspan="3">내용</td>
</tr>
<tr>
<td colspan="4" class="clear">colspan="4" class="clear" (clear: 셀병합시 여백/테두리를 기본값으로 변경할때 사용</td>
</tr>
</tbody>
</table>
</div>
테이블 내에 폼 태그가 있는 경우, ec-base-table 모듈에 typeWrite 클래스를 추가합니다.
xxxxxxxxxx
<div class="ec-base-table typeWrite">
<table summary="" border="1">
<caption>제목</caption>
<colgroup>
<col style="width:20%;" />
<col style="width:auto;" />
</colgroup>
<tbody>
<tr>
<th scope="row">ID <img src="//img.echosting.cafe24.com/skin/base_ko_KR/member/ico_required.gif" alt="필수" /></th>
<td><input type="text" /> 영문 소문자/숫자, 4~16자</td>
</tr>
<tr>
<th scope="row">추천인 ID</th>
<td><input type="text" /></td>
</tr>
<tr>
<th scope="row">내용</th>
<td><textarea cols="30" rows="3" style="width:90%">
목록형은 세로형 테이블 타입으로 제목이 상단에 있습니다.
ec-base-table 모듈에 typeList 클래스를 추가합니다.
xxxxxxxxxx
<div class="ec-base-table typeList">
<table border="1" summary="">
<caption>테이블명</caption>
<colgroup>
<col style="width:70px;" />
<col style="width:145px;" />
<col style="width:auto;" />
</colgroup>
<thead>
<tr>
<th scope="col">제목</th>
<th scope="col">제목</th>
<th scope="col">제목</th>
</tr>
</thead>
<tbody class="center">
<tr>
<td>내용</td>
<td>내용</td>
<td>내용</td>
</tr>
</tbody>
</table>
</div>
세로형 테이블에서 스크롤이 필요한 경우, 제목과 내용을 각각의 table로 나눈 뒤,
제목 테이블의 tbody에는 head 클래스를 추가하고, 스크롤 영역인 내용 테이블에는 scroll 클래스로 감싸줍니다.
xxxxxxxxxx
<!--스크롤: 기본형-->
<div class="ec-base-table typeList">
<table border="1" summary="">
<caption>테이블 제목</caption>
<colgroup>
<col style="width:100px;" />
<col style="width:auto;" />
<col style="width:128px;" />
</colgroup>
<tbody class="head">
<tr>
<td scope="col">이미지</td>
<td scope="col">제품 정보</td>
<td scope="col">판매 가격</td>
</tr>
</tbody>
</table>
<div class="scroll">
<table border="1" summary="">
<caption>테이블 제목</caption>
<colgroup>
<col style="width:100px;" />
<col style="width:auto;" />
<col style="width:111px;" />
</colgroup>
<tbody class="center">
<tr>
<td><a href="#none"><img src="$상품 이미지 경로" alt="" /></a></td>
<td class="left"><p><a href="#none">추가 구성 상품</a></p></td>
<td><strong>20,000원</strong></td>
</tr>
<tr>
<td><a href="#none"><img src="$표 제목" alt="" /></a></td>
<td class="left"><p><a href="#none">추가 구성 상품</a></p></td>
<td><strong>20,000원</strong></td>
</tr>
<tr>
<td><a href="#none"><img src="$상품 이미지 경로" alt="" /></a></td>
<td class="left"><p><a href="#none">추가 구성 상품</a></p></td>
<td><strong>20,000원</strong></td>
</tr>
</tbody>
</table>
</div>
</div>
<!--스크롤: 검색 결과 미노출-->
<div class="ec-base-table typeList">
<table border="1" summary="">
<caption>테이블 제목</caption>
<colgroup>
<col style="width:100px;" />
<col style="width:auto;" />
<col style="width:128px;" />
</colgroup>
<tbody class="head">
<tr>
<td scope="col">이미지</td>
<td scope="col">제품 정보</td>
<td scope="col">판매 가격</td>
</tr>
</tbody>
</table>
<div class="scroll">
<p class="message ">검색결과가 없습니다.</p>
</div>
</div>
thead 제목 부분을 미노출할 경우, 를 추가합니다.
xxxxxxxxxx
<div class="ec-base-table typeList">
<table border="1" summary="">
<caption>테이블명</caption>
<colgroup>
<col style="width:auto;" />
<col style="width:90px;" />
</colgroup>
<thead class="blind">
<tr>
<th scope="col">제목</th>
<th scope="col">작성일</th>
</tr>
</thead>
<tbody class="center">
<tr>
<td class="left"><a href="#none">제목</a></td>
<td>2015-05-04</td>
</tr>
<tr>
<td class="left"><a href="#none">제목</a></td>
<td>2015-10-13</td>
</tr>
<tr>
<td class="left"><a href="#none">제목</a></td>
<td>2015-10-13</td>
</tr>
</tbody>
</table>
</div>
table 안의 콘텐츠가 정렬이 필요한 경우,
left/ center/ right/ middle 클래스를 추가하여 정렬시킬 수 있습니다.
xxxxxxxxxx
<!--가로형 정렬-->
<div class="ec-base-table gBorder">
<table border="1" summary="">
<caption>테이블 제목</caption>
<colgroup>
<col style="width:20%;" />
<col style="width:auto;" />
<col style="width:26%;" />
<col style="width:26%;" />
</colgroup>
<tbody class="left">
<tr>
<th scope="row"><span class="txtWarn">tbody left</span></th>
<td>-</td>
<td class="center">center</td>
<td class="right">right</td>
</tr>
</tbody>
<tbody class="center">
<tr>
<th scope="row"><span class="txtWarn">tbody center</span></th>
<td class="left">left</td>
<td>-</td>
<td class="right">right</td>
</tr>
</tbody>
<tbody class="right">
<tr>
<th scope="row"><span class="txtWarn">tbody right</span></th>
<td class="left">left</td>
<td class="center">center</td>
<td>-</td>
</tr>
</tbody>
<tbody class="top">
<tr>
<th scope="row"><span class="txtWarn">tbody top</span><br/>top<br/>top</th>
<td class="middle">middle</td>
<td class="top">top</td>
<td>-</td>
</tr>
</tbody>
</table>
</div>
<!-- 세로형 정렬-->
<div class="ec-base-table typeList gBorder">
<table border="1" summary="">
<caption>테이블명</caption>
<colgroup>
<col style="width:20%;" />
<col style="width:auto;" />
<col style="width:26%;" />
<col style="width:26%;" />
</colgroup>
<thead>
<tr>
<th scope="col">제목</th>
<th scope="col">제목</th>
<th scope="col">제목</th>
<th scope="col">제목</th>
</tr>
</thead>
<tbody class="left">
<tr>
<td><span class="txtWarn">tbody left</span></td>
<td class="center">center</td>
<td class="right">right</td>
<td>-</td>
</tr>
</tbody>
<tbody class="center">
<tr>
<td><span class="txtWarn">tbody center</span></td>
<td class="left">left</td>
<td class="right">right</td>
<td>-</td>
</tr>
</tbody>
<tbody class="right">
<tr>
<td><span class="txtWarn">tbody right</span></td>
<td class="left">left</td>
<td class="center">center</td>
<td>-</td>
</tr>
</tbody>
<tbody class="top">
<tr>
<td><span class="txtWarn">tbody top</span><br/>top<br/>top</td>
<td class="middle">middle</td>
<td class="top">top</td>
<td>-</td>
</tr>
</tbody>
</table>
</div>
col 태그의 넓이에 따라 셀의 고정이 필요한 경우, gLayoutFixed 클래스를 추가합니다.
xxxxxxxxxx
<div class="ec-base-table gLayoutFixed">
<table border="1" summary="">
<caption>테이블명</caption>
<colgroup>
<col style="width:110px;" />
<col style="width:auto;" />
<col style="width:110px;" />
<col style="width:auto;" />
</colgroup>
<tbody>
<tr>
<th scope="row">제목</th>
<td>긴 내용</td>
<th scope="row">제목</th>
<td>내용</td>
</tr>
</tbody>
</table>
</div>
셀 전체에 테두리가 있는 디자인으로, 가로 / 세로 테이블에 모두 적용이 가능합니다.
xxxxxxxxxx
<!--가로 + 셀 테두리형-->
<div class="ec-base-table gBorder">
<table border="1" summary="">
<caption>테이블명</caption>
<colgroup>
<col style="width:125px;" />
<col style="width:auto;" />
<col style="width:auto;" />
<col style="width:auto;" />
<col style="width:auto;" />
</colgroup>
<tbody>
<tr>
<th scope="row">제목</th>
<td class="center">내용</td>
<td class="center">내용</td>
<td class="center">내용</td>
<td class="center">내용</td>
</tr>
<tr>
<th scope="row">제목</th>
<td>내용</td>
<td>내용</td>
<td>내용</td>
<td>내용</td>
</tr>
</tbody>
</table>
</div>
<!--세로 + 셀 테두리형-->
<div class="ec-base-table typeList gBorder">
<table border="1" summary="">
<caption>테이블명</caption>
<colgroup>
<col style="width:70px;" />
<col style="width:145px;" />
<col style="width:auto;" />
</colgroup>
<thead>
<tr>
<th scope="col">제목</th>
<th scope="col">제목</th>
<th scope="col">제목</th>
</tr>
</thead>
<tbody class="center">
<tr>
<td>내용</td>
<td>내용</td>
<td>내용</td>
</tr>
</tbody>
</table>
</div>
제목 미노출형에서 gLine 클래스를 추가하면 라인형 테이블로 사용할 수 있습니다.
xxxxxxxxxx
<div class="ec-base-table typeList gLine">
<table border="1" summary="">
<caption>테이블명</caption>
<colgroup>
<col style="width:auto;" />
<col style="width:90px;" />
</colgroup>
<thead class="blind">
<tr>
<th scope="col">제목</th>
<th scope="col">작성일</th>
</tr>
</thead>
<tbody class="center">
<tr>
<td class="left"><a href="#none">제목</a></td>
<td>2015-05-04</td>
</tr>
<tr>
<td class="left"><a href="#none">제목</a></td>
<td>2015-10-13</td>
</tr>
<tr>
<td class="left"><a href="#none">제목</a></td>
<td>2015-10-13</td>
</tr>
</tbody>
</table>
</div>
테이블 전체에 테두리/배경색이 없는 디자인으로, 전체 테이블에 모두 적용 가능합니다.
xxxxxxxxxx
<div class="ec-base-table typeClear">
<table summary="" border="1">
<caption>테이블명</caption>
<colgroup>
<col style="width:90px;" />
<col style="width:auto;" />
</colgroup>
<tbody>
<tr>
<th scope="row">상품명</th>
<td>샘플9</td>
</tr>
<tr>
<th scope="row">제조사</th>
<td>자체 제작</td>
</tr>
<tr>
<th scope="row">원산지</th>
<td>국내</td>
</tr>
</tbody>
</table>
</div>
내역이 없는 경우, thead 태그를 유지하고 table 태그와 형제 레벨로 "message"클래스 영역을 추가합니다.
xxxxxxxxxx
<div class="ec-base-table typeList">
<table border="1" summary="">
<caption>테이블명</caption>
<colgroup>
<col style="width:27px;" />
<col style="width:200px;" />
<col style="width:auto;" />
<col style="width:auto;" />
<col style="width:110px;" />
</colgroup>
<thead>
<tr>
<th scope="col"><input type="checkbox" /></th>
<th scope="col">상품 정보</th>
<th scope="col">판매가격</th>
<th scope="col">합계</th>
<th scope="col">선택</th>
</tr>
</thead>
<tbody class="center displaynone">
<tr>
<td>-</td>
<td>내용</td>
<td>내용</td>
<td>내용</td>
<td>내용</td>
</tr>
</tbody>
</table>
<p class="message">(thead유지+tbody displaynone+table형제레벨)주문 내역이 없습니다.</p>
</div>
기본 테이블보다 팝업내의 테이블 셀 여백이 좁게 처리되어 있습니다.
xxxxxxxxxx
<div module="모듈명" class="ec-base-layer">
<div class="header">
<h1>팝업</h1>
</div>
<div class="content">
<div class="ec-base-table typeWrite">
<table border="1" summary="">
<caption>테이블 제목</caption>
<colgroup>
<col style="width:80px;" />
<col style="width:auto;" />
</colgroup>
<tbody>
<tr>
<th scope="row">예금주</th>
<td><input type="text" style="width:90%;" /></td>
</tr>
<tr>
<th scope="row">금융 기관</th>
<td>
<select>
<option>- 선택 -</option>
<option>산업은행</option>
<option>기업은행</option>
</select>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="ec-base-button">
<a href="#none" class="btnSubmit btnNormalFix sizeS" title="확인">확인</a>
<a href="#none" class="btnNormal btnNormalFix sizeS" title="취소"</a>
</div>
<a href="#none" class="close"><img src="//img.echosting.cafe24.com/skin/base/common/btn_close.png" alt="닫기" /></a>
</div>
더 나은 서비스를 제공하고자 계속해서 노력해 나가겠습니다.