반응 형 테이블
반응 형 테이블
이 .table-responsive클래스는 반응 형 테이블을 생성합니다. 그러면 테이블이 작은 장치 (768px 미만)에서 가로로 스크롤됩니다. 768px 너비보다 큰 것을 볼 때 차이점은 없습니다.
예
<div class="table-responsive">
<table class="table">
...
</table>
</div>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Table</h2>
<p>The .table-responsive class creates a responsive table which will scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, there is no difference:</p>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
<th>City</th>
<th>Country</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Anna</td>
<td>Pitt</td>
<td>35</td>
<td>New York</td>
<td>USA</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
이 .table-responsive클래스는 반응 형 테이블을 생성합니다. 그러면 테이블이 작은 장치 (768px 미만)에서 가로로 스크롤됩니다. 768px 너비보다 큰 것을 볼 때 차이점은 없습니다.
예
<div class="table-responsive">
<table class="table">
...
</table>
</div>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Table</h2>
<p>The .table-responsive class creates a responsive table which will scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, there is no difference:</p>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
<th>City</th>
<th>Country</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Anna</td>
<td>Pitt</td>
<td>35</td>
<td>New York</td>
<td>USA</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
첨부파일
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 268 | 부트스트랩 | 8년 전 | 3141 | ||
| 267 | 부트스트랩 | 8년 전 | 2924 | ||
| 266 | 부트스트랩 | 8년 전 | 2914 | ||
| 265 | 부트스트랩 | 8년 전 | 3406 | ||
| 264 | 부트스트랩 | 8년 전 | 3148 | ||
| 263 | 부트스트랩 | 8년 전 | 3223 | ||
| 262 | 부트스트랩 | 8년 전 | 2722 | ||
| 261 | 부트스트랩 | 8년 전 | 4843 | ||
| 260 | 부트스트랩 | 8년 전 | 3215 | ||
| 259 | 부트스트랩 | 8년 전 | 2762 | ||
| 258 | 부트스트랩 | 8년 전 | 2787 | ||
| 257 | 부트스트랩 | 8년 전 | 2814 | ||
| 256 | 부트스트랩 | 8년 전 | 3304 | ||
| 255 | 부트스트랩 | 8년 전 | 3491 | ||
| 254 | 부트스트랩 | 8년 전 | 3227 | ||
| 253 | 부트스트랩 | 8년 전 | 4103 | ||
| 252 | 부트스트랩 | 8년 전 | 2887 | ||
| 251 | 부트스트랩 | 8년 전 | 2612 | ||
| 250 | 부트스트랩 | 8년 전 | 2717 | ||
| 249 | 부트스트랩 | 8년 전 | 2427 | ||
| 248 | 부트스트랩 | 8년 전 | 1972 | ||
| 247 | 부트스트랩 | 8년 전 | 1728 | ||
| 246 | 부트스트랩 | 8년 전 | 2001 | ||
| 245 | 부트스트랩 | 8년 전 | 1522 | ||
| 244 | 부트스트랩 | 8년 전 | 2138 | ||
| 243 | 부트스트랩 | 8년 전 | 1890 | ||
| 242 | 부트스트랩 | 8년 전 | 1782 | ||
| 241 | 부트스트랩 | 8년 전 | 1171 | ||
| 240 | 부트스트랩 | 8년 전 | 1620 | ||
| 239 | 부트스트랩 | 8년 전 | 1651 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기