활성 / 비활성 버튼
활성 / 비활성 버튼
버튼은 활성 (눌린 것처럼 보임) 또는 비활성 (잠금 해제) 상태로 설정할 수 있습니다.
클래스 .active는 버튼을 누른 것처럼 보이게하고 클래스 .disabled 는 버튼을 클릭 할 수 없도록 만듭니다.
예
<button type="button" class="btn btn-primary active">Active Primary</button>
<button type="button" class="btn btn-primary disabled">Disabled Primary</button>
<!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>Button States</h2>
<button type="button" class="btn btn-primary">Primary Button</button>
<button type="button" class="btn btn-primary active">Active Primary</button>
<button type="button" class="btn btn-primary disabled">Disabled Primary</button>
</div>
</body>
</html>
버튼은 활성 (눌린 것처럼 보임) 또는 비활성 (잠금 해제) 상태로 설정할 수 있습니다.
클래스 .active는 버튼을 누른 것처럼 보이게하고 클래스 .disabled 는 버튼을 클릭 할 수 없도록 만듭니다.
예
<button type="button" class="btn btn-primary active">Active Primary</button>
<button type="button" class="btn btn-primary disabled">Disabled Primary</button>
<!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>Button States</h2>
<button type="button" class="btn btn-primary">Primary Button</button>
<button type="button" class="btn btn-primary active">Active Primary</button>
<button type="button" class="btn btn-primary disabled">Disabled Primary</button>
</div>
</body>
</html>
첨부파일
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 148 | AngularJS | 8년 전 | 1654 | ||
| 147 | AngularJS | 8년 전 | 1073 | ||
| 146 | AngularJS | 8년 전 | 1259 | ||
| 145 | AngularJS | 8년 전 | 1370 | ||
| 144 | AngularJS | 8년 전 | 1155 | ||
| 143 | AngularJS | 8년 전 | 1201 | ||
| 142 | AngularJS | 8년 전 | 1171 | ||
| 141 | AngularJS | 8년 전 | 1335 | ||
| 140 | AngularJS | 8년 전 | 1197 | ||
| 139 | AngularJS | 8년 전 | 1440 | ||
| 138 | AngularJS | 8년 전 | 1150 | ||
| 137 | AngularJS | 8년 전 | 1062 | ||
| 136 | AngularJS | 8년 전 | 1152 | ||
| 135 | AngularJS | 8년 전 | 1677 | ||
| 134 | AngularJS | 8년 전 | 1380 | ||
| 133 | AngularJS | 8년 전 | 1475 | ||
| 132 | AngularJS | 8년 전 | 1098 | ||
| 131 | AngularJS | 8년 전 | 1370 | ||
| 130 | AngularJS | 8년 전 | 1465 | ||
| 129 | AngularJS | 8년 전 | 1440 | ||
| 128 | AngularJS | 8년 전 | 2061 | ||
| 127 | AngularJS | 8년 전 | 1484 | ||
| 126 | jQuery Mobile | 8년 전 | 2259 | ||
| 125 | jQuery Mobile | 8년 전 | 2015 | ||
| 124 | jQuery Mobile | 8년 전 | 1882 | ||
| 123 | jQuery Mobile | 8년 전 | 1813 | ||
| 122 | jQuery Mobile | 8년 전 | 1854 | ||
| 121 | jQuery Mobile | 8년 전 | 2059 | ||
| 120 | jQuery Mobile | 8년 전 | 1593 | ||
| 119 | jQuery Mobile | 8년 전 | 1678 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기