Jquery 모바일: 버튼 그룹
data-role을 controlgroup으로 묶을 수 있다. 기본 세로 정렬이지만 data-type="horizontal"으로 하면 가로 정렬도 할 수 있다.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JQuery Mobile</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<!-- 첫번째 페이지 -->
<section id="page1" data-role="page">
<header data-role="header">
<h1>JQuery Mobile</h1>
</header>
<div class="content" data-role="content">
<p>컨트롤 그룹</p>
<div data-role="controlgroup">
<a href="#" data-role="button">확인</a>
<a href="#" data-role="button">취소</a>
<a href="#" data-role="button">적용</a>
</div>
<p>컨트롤 그룹: 수평정렬</p>
<div data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button">Forward</a>
<a href="#" data-role="button">Back</a>
<a href="#" data-role="button">Refresh</a>
</div>
</div>
<footer data-role="footer">
<h2>ⓒcopyright 2016</h2>
</footer>
</section>
</body>
</html>
'jQuery Mobile' 카테고리의 다른 글
Jquery 모바일: 이전 페이지로 이동 (0) | 2016.06.01 |
---|---|
Jquery 모바일: 트랜지션(Transition) (0) | 2016.05.31 |
Jquery 모바일: 버튼 아이콘 (0) | 2016.05.31 |
Jquery 모바일: 다이얼로그(dialog) (0) | 2016.05.31 |
Jquery 모바일의 구조 (0) | 2016.05.30 |