문맥 분류
문맥 분류
상황 별 클래스를 사용하여 표 행 ( <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 위험하거나 잠재적 인 부정적인 행동을 나타냅니다.
첨부파일
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 58 | jQuery Mobile | 8년 전 | 2987 | ||
| 57 | jQuery Mobile | 8년 전 | 2029 | ||
| 56 | jQuery Mobile | 8년 전 | 1363 | ||
| 55 | jQuery Mobile | 8년 전 | 1556 | ||
| 54 | jQuery Mobile | 8년 전 | 2235 | ||
| 53 | jQuery Mobile | 8년 전 | 1536 | ||
| 52 | jQuery Mobile | 8년 전 | 1555 | ||
| 51 | jQuery Mobile | 8년 전 | 1426 | ||
| 50 | jQuery Mobile | 8년 전 | 1312 | ||
| 49 | jQuery Mobile | 8년 전 | 1817 | ||
| 48 | jQuery Mobile | 8년 전 | 1461 | ||
| 47 | jQuery Mobile | 8년 전 | 2019 | ||
| 46 | jQuery Mobile | 8년 전 | 1980 | ||
| 45 | jQuery Mobile | 8년 전 | 1513 | ||
| 44 | jQuery Mobile | 8년 전 | 1673 | ||
| 43 | jQuery Mobile | 8년 전 | 1789 | ||
| 42 | jQuery Mobile | 8년 전 | 1667 | ||
| 41 | jQuery Mobile | 8년 전 | 1835 | ||
| 40 | jQuery Mobile | 8년 전 | 1475 | ||
| 39 | jQuery Mobile | 8년 전 | 1633 | ||
| 38 | jQuery Mobile | 8년 전 | 2180 | ||
| 37 | jQuery Mobile | 8년 전 | 2683 | ||
| 36 | jQuery Mobile | 8년 전 | 2131 | ||
| 35 | jQuery Mobile | 8년 전 | 1519 | ||
| 34 | jQuery Mobile | 8년 전 | 2421 | ||
| 33 | AngularJS | 8년 전 | 2872 | ||
| 32 | AngularJS | 8년 전 | 2434 | ||
| 31 | AngularJS | 8년 전 | 1766 | ||
| 30 | AngularJS | 8년 전 | 2840 | ||
| 29 | AngularJS | 8년 전 | 2398 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기