문맥 분류
문맥 분류
상황 별 클래스를 사용하여 표 행 ( <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 위험하거나 잠재적 인 부정적인 행동을 나타냅니다.
첨부파일
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 178 | AngularJS | 8년 전 | 1436 | ||
| 177 | AngularJS | 8년 전 | 1209 | ||
| 176 | AngularJS | 8년 전 | 1278 | ||
| 175 | AngularJS | 8년 전 | 1373 | ||
| 174 | AngularJS | 8년 전 | 1145 | ||
| 173 | AngularJS | 8년 전 | 1889 | ||
| 172 | AngularJS | 8년 전 | 1440 | ||
| 171 | AngularJS | 8년 전 | 1132 | ||
| 170 | AngularJS | 8년 전 | 1396 | ||
| 169 | AngularJS | 8년 전 | 1191 | ||
| 168 | AngularJS | 8년 전 | 1009 | ||
| 167 | AngularJS | 8년 전 | 1973 | ||
| 166 | AngularJS | 8년 전 | 1045 | ||
| 165 | AngularJS | 8년 전 | 1112 | ||
| 164 | AngularJS | 8년 전 | 1318 | ||
| 163 | AngularJS | 8년 전 | 1160 | ||
| 162 | AngularJS | 8년 전 | 1376 | ||
| 161 | AngularJS | 8년 전 | 1381 | ||
| 160 | AngularJS | 8년 전 | 1137 | ||
| 159 | AngularJS | 8년 전 | 1098 | ||
| 158 | AngularJS | 8년 전 | 1516 | ||
| 157 | AngularJS | 8년 전 | 1484 | ||
| 156 | AngularJS | 8년 전 | 1334 | ||
| 155 | AngularJS | 8년 전 | 1219 | ||
| 154 | AngularJS | 8년 전 | 1626 | ||
| 153 | AngularJS | 8년 전 | 1114 | ||
| 152 | AngularJS | 8년 전 | 1533 | ||
| 151 | AngularJS | 8년 전 | 1432 | ||
| 150 | AngularJS | 8년 전 | 1128 | ||
| 149 | AngularJS | 8년 전 | 1650 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기