비활성화 및 활성 항목
비활성화 및 활성 항목
.active 클래스를 사용하여 특정 드롭 다운 항목을 강조 표시합니다 (파란색 배경색 추가).
드롭 다운 메뉴에서 항목을 사용하지 않으려면 .disabled수업을 사용하십시오 (가리개에서 밝은 회색 텍스트 색상 및 "주차 금지 기호"아이콘 표시).
예제
<!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>Dropdowns</h2>
<p>The .active class adds a blue background color to the active link.</p>
<p>The .disabled class disables a dropdown item (grey text color).</p>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">Tutorials
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">Normal</a></li>
<li class="disabled"><a href="#">Disabled</a></li>
<li class="active"><a href="#">Active</a></li>
<li><a href="#">Normal</a></li>
</ul>
</div>
</div>
</body>
</html>
.active 클래스를 사용하여 특정 드롭 다운 항목을 강조 표시합니다 (파란색 배경색 추가).
드롭 다운 메뉴에서 항목을 사용하지 않으려면 .disabled수업을 사용하십시오 (가리개에서 밝은 회색 텍스트 색상 및 "주차 금지 기호"아이콘 표시).
예제
<!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>Dropdowns</h2>
<p>The .active class adds a blue background color to the active link.</p>
<p>The .disabled class disables a dropdown item (grey text color).</p>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">Tutorials
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">Normal</a></li>
<li class="disabled"><a href="#">Disabled</a></li>
<li class="active"><a href="#">Active</a></li>
<li><a href="#">Normal</a></li>
</ul>
</div>
</div>
</body>
</html>
첨부파일
댓글 2개
6년 전
감사합니다. ^^
2년 전
좋아요
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 148 | AngularJS | 8년 전 | 1655 | ||
| 147 | AngularJS | 8년 전 | 1075 | ||
| 146 | AngularJS | 8년 전 | 1261 | ||
| 145 | AngularJS | 8년 전 | 1370 | ||
| 144 | AngularJS | 8년 전 | 1156 | ||
| 143 | AngularJS | 8년 전 | 1201 | ||
| 142 | AngularJS | 8년 전 | 1173 | ||
| 141 | AngularJS | 8년 전 | 1335 | ||
| 140 | AngularJS | 8년 전 | 1197 | ||
| 139 | AngularJS | 8년 전 | 1442 | ||
| 138 | AngularJS | 8년 전 | 1152 | ||
| 137 | AngularJS | 8년 전 | 1063 | ||
| 136 | AngularJS | 8년 전 | 1153 | ||
| 135 | AngularJS | 8년 전 | 1680 | ||
| 134 | AngularJS | 8년 전 | 1381 | ||
| 133 | AngularJS | 8년 전 | 1476 | ||
| 132 | AngularJS | 8년 전 | 1098 | ||
| 131 | AngularJS | 8년 전 | 1371 | ||
| 130 | AngularJS | 8년 전 | 1465 | ||
| 129 | AngularJS | 8년 전 | 1445 | ||
| 128 | AngularJS | 8년 전 | 2061 | ||
| 127 | AngularJS | 8년 전 | 1485 | ||
| 126 | jQuery Mobile | 8년 전 | 2259 | ||
| 125 | jQuery Mobile | 8년 전 | 2015 | ||
| 124 | jQuery Mobile | 8년 전 | 1882 | ||
| 123 | jQuery Mobile | 8년 전 | 1814 | ||
| 122 | jQuery Mobile | 8년 전 | 1856 | ||
| 121 | jQuery Mobile | 8년 전 | 2059 | ||
| 120 | jQuery Mobile | 8년 전 | 1594 | ||
| 119 | jQuery Mobile | 8년 전 | 1678 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기