"부트스트랩 버튼그룹"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 2명의 중간 판 2개는 보이지 않습니다)
5번째 줄: 5번째 줄:


==예시 1: button 태그==
==예시 1: button 태그==
<source lang='html5'>
<syntaxhighlight lang='html5'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//code.jquery.com/jquery.min.js"></script>
15번째 줄: 15번째 줄:
   <button class="btn btn-default">버튼3</button>
   <button class="btn btn-default">버튼3</button>
</div>
</div>
</source>
</syntaxhighlight>
<jsfiddle>nnge932d</jsfiddle>
<jsfiddle>nnge932d</jsfiddle>


==예시2: a 태그==
==예시2: a 태그==
<source lang='html5'>
<syntaxhighlight lang='html5'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//code.jquery.com/jquery.min.js"></script>
29번째 줄: 29번째 줄:
   <a class="btn btn-default" href="#3">버튼3</a>
   <a class="btn btn-default" href="#3">버튼3</a>
</div>
</div>
</source>
</syntaxhighlight>
<jsfiddle>hhem41wv</jsfiddle>
<jsfiddle>hhem41wv</jsfiddle>


38번째 줄: 38번째 줄:
*[[버튼그룹]]
*[[버튼그룹]]


==참고 자료==
==참고==
*http://v4-alpha.getbootstrap.com/components/button-group/
*http://v4-alpha.getbootstrap.com/components/button-group/
*http://www.w3schools.com/bootstrap/bootstrap_button_groups.asp
*http://www.w3schools.com/bootstrap/bootstrap_button_groups.asp


[[분류: Bootstrap]]
[[분류: Bootstrap]]
[[분류: 버튼]]

2020년 11월 2일 (월) 02:52 기준 최신판

1 개요[ | ]

Bootstrap Button group
부트스트랩 .btn-group
부트스트랩 버튼그룹

2 예시 1: button 태그[ | ]

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/latest/js/bootstrap.min.js"></script>
    
<div class="btn-group" role="group">
  <button class="btn btn-default">버튼1</button>
  <button class="btn btn-default">버튼2</button>
  <button class="btn btn-default">버튼3</button>
</div>

3 예시2: a 태그[ | ]

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/latest/js/bootstrap.min.js"></script>
    
<div class="btn-group" role="group">
  <a class="btn btn-default" href="#1">버튼1</a>
  <a class="btn btn-default" href="#2">버튼2</a>
  <a class="btn btn-default" href="#3">버튼3</a>
</div>

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}