문맥 분류
문맥 분류
상황 별 클래스를 사용하여 표 행 ( <tr>) 또는 표 셀 ( <td>) 에 색상을 지정할 수 있습니다 .
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<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>Contextual Classes</h2>
<p>Contextual classes can be used to color table rows or table cells. The classes that can be used are: .active, .success, .info, .warning, and .danger.</p>
<table class="table">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Default</td>
<td>Defaultson</td>
<td>def@somemail.com</td>
</tr>
<tr class="success">
<td>Success</td>
<td>Doe</td>
<td>john@example.com</td>
</tr>
<tr class="danger">
<td>Danger</td>
<td>Moe</td>
<td>mary@example.com</td>
</tr>
<tr class="info">
<td>Info</td>
<td>Dooley</td>
<td>july@example.com</td>
</tr>
<tr class="warning">
<td>Warning</td>
<td>Refs</td>
<td>bo@example.com</td>
</tr>
<tr class="active">
<td>Active</td>
<td>Activeson</td>
<td>act@example.com</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
사용할 수있는 상황 별 클래스는 다음과 같습니다.
.active 테이블 행 또는 표 셀에 호버 색을 적용합니다.
.success 성공 또는 긍정적 인 행동을 나타냅니다.
.info 중립적 인 정보의 변화 또는 행동을 나타냅니다.
.warning 주의가 필요한 경고를 나타냅니다.
.danger 위험하거나 잠재적 인 부정적인 행동을 나타냅니다.
상황 별 클래스를 사용하여 표 행 ( <tr>) 또는 표 셀 ( <td>) 에 색상을 지정할 수 있습니다 .
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<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>Contextual Classes</h2>
<p>Contextual classes can be used to color table rows or table cells. The classes that can be used are: .active, .success, .info, .warning, and .danger.</p>
<table class="table">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Default</td>
<td>Defaultson</td>
<td>def@somemail.com</td>
</tr>
<tr class="success">
<td>Success</td>
<td>Doe</td>
<td>john@example.com</td>
</tr>
<tr class="danger">
<td>Danger</td>
<td>Moe</td>
<td>mary@example.com</td>
</tr>
<tr class="info">
<td>Info</td>
<td>Dooley</td>
<td>july@example.com</td>
</tr>
<tr class="warning">
<td>Warning</td>
<td>Refs</td>
<td>bo@example.com</td>
</tr>
<tr class="active">
<td>Active</td>
<td>Activeson</td>
<td>act@example.com</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
사용할 수있는 상황 별 클래스는 다음과 같습니다.
.active 테이블 행 또는 표 셀에 호버 색을 적용합니다.
.success 성공 또는 긍정적 인 행동을 나타냅니다.
.info 중립적 인 정보의 변화 또는 행동을 나타냅니다.
.warning 주의가 필요한 경고를 나타냅니다.
.danger 위험하거나 잠재적 인 부정적인 행동을 나타냅니다.
첨부파일
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 208 | 부트스트랩 | 8년 전 | 2738 | ||
| 207 | AngularJS | 8년 전 | 1482 | ||
| 206 | AngularJS | 8년 전 | 1131 | ||
| 205 | AngularJS | 8년 전 | 996 | ||
| 204 | AngularJS | 8년 전 | 1405 | ||
| 203 | AngularJS | 8년 전 | 1202 | ||
| 202 | AngularJS | 8년 전 | 1512 | ||
| 201 | AngularJS | 8년 전 | 1462 | ||
| 200 | AngularJS | 8년 전 | 1438 | ||
| 199 | AngularJS | 8년 전 | 1360 | ||
| 198 | AngularJS | 8년 전 | 1244 | ||
| 197 | AngularJS | 8년 전 | 1405 | ||
| 196 | AngularJS | 8년 전 | 1065 | ||
| 195 | AngularJS | 8년 전 | 1269 | ||
| 194 | AngularJS | 8년 전 | 1283 | ||
| 193 | AngularJS | 8년 전 | 1628 | ||
| 192 | AngularJS | 8년 전 | 1367 | ||
| 191 | AngularJS | 8년 전 | 1595 | ||
| 190 | AngularJS | 8년 전 | 1568 | ||
| 189 | AngularJS | 8년 전 | 1657 | ||
| 188 | AngularJS | 8년 전 | 1415 | ||
| 187 | AngularJS | 8년 전 | 1383 | ||
| 186 | AngularJS | 8년 전 | 1424 | ||
| 185 | AngularJS | 8년 전 | 1454 | ||
| 184 | AngularJS | 8년 전 | 1496 | ||
| 183 | AngularJS | 8년 전 | 1490 | ||
| 182 | AngularJS | 8년 전 | 1020 | ||
| 181 | AngularJS | 8년 전 | 1402 | ||
| 180 | AngularJS | 8년 전 | 1292 | ||
| 179 | AngularJS | 8년 전 | 1274 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기