2013. 1. 25. 11:10 Web/Mobile
1. header에 뒤로가는 버튼 자동 생성
1.1 페이지 요소에 자동으로 Back버튼을 지정하는 방법
<div data-role="page" id="page2" data-add-back-btn="true">
1. 2 라벨명 지정
<div data-role="page" id="page2" data-add-back-btn="true" data-back-btn-text="뒤로">
2 header가 아닌곳에 back버튼을 넣으려면..
2.1 a요소에 data-rel속성에 back을 설정한 링크 추가
<a href="#" data-rel="back"></a>
※ back기능은 편리하긴 하나 방문 페이지가 복잡한 경우 돌아가는 위치가 달라지므로 추천하지 않음
해결방법~~
1.1 header에 임의 버튼 생성하기
1.2 버튼정렬하기
<div data-role="header">
<a href="#page2">home</a>
<h1>페이지 1</h1>
<a href="#page2" class="ui-btn-right">save</a>
</div>
2.1 footer에 버튼생성
: footer에는 여백설정이 없으므로 class속성을 지정해줘야함
<div data-role="footer" class="ui-bar">
<a href="#page2">Remove</a>
<a href="#page2">Add</a>
</div>
[JQuery UI]폼 UI (0) | 2013.01.25 |
---|---|
[JQuery UI]콘텐츠 영역 접이식 패널 (0) | 2013.01.25 |
폼 UI 기본 (0) | 2013.01.24 |
구글맵 API (0) | 2013.01.24 |
Jquery Mobile 태그 속성들 (0) | 2013.01.24 |
2013. 1. 24. 18:02 Web/Mobile
<form action="form.php" method="post">
<div data-role="fieldcontain">
<label for="name">이름</label>
<input type="text" id="name">
<label for="comment">문의 내용</label>
<textarea id="comment"></textarea>
//플립스위치
<label for="gender">성별</label>
<select name="gender" id="gender" data-role="slider">
<option value="남자">남자</option>
<option value="여자">여자</option>
</select>
//체크박스
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<legend>주제별 문의</legend>
<input type="checkbox" name="type1" id="type1" value="HP 신규작성">
<label for="type1">HP 신규작성</label>
<input type="checkbox" name="type2" id="type2" value="HP 리뉴얼">
<label for="type2">HP 리뉴얼</label>
</fieldset>
</div>
//취소,전송버튼 : data-icon="delete"아이콘추가, data-inline="true"문자열
<input type="button" value="취소" data-theme="b" data-icon="delete" data-inline="true">
<input type="submit" value="전송" data-theme="b" data-icon="arrow-r" data-inline="true">
</div>
</form>
참고: http://view.jquerymobile.com/1.3.2/dist/demos/widgets/forms/
[JQuery UI]콘텐츠 영역 접이식 패널 (0) | 2013.01.25 |
---|---|
간편한 header, footer (0) | 2013.01.25 |
구글맵 API (0) | 2013.01.24 |
Jquery Mobile 태그 속성들 (0) | 2013.01.24 |
Jquery Mobile 기본구조 (0) | 2013.01.24 |
2013. 1. 24. 17:39 Web/Mobile
[JQuery UI]콘텐츠 영역 접이식 패널 (0) | 2013.01.25 |
---|---|
간편한 header, footer (0) | 2013.01.25 |
폼 UI 기본 (0) | 2013.01.24 |
Jquery Mobile 태그 속성들 (0) | 2013.01.24 |
Jquery Mobile 기본구조 (0) | 2013.01.24 |
2013. 1. 24. 17:31 Web/Mobile
[JQuery UI]콘텐츠 영역 접이식 패널 (0) | 2013.01.25 |
---|---|
간편한 header, footer (0) | 2013.01.25 |
폼 UI 기본 (0) | 2013.01.24 |
구글맵 API (0) | 2013.01.24 |
Jquery Mobile 기본구조 (0) | 2013.01.24 |
2013. 1. 24. 17:08 Web/Mobile
1. CDN으로부터 Jquery파일 로딩
http://jquerymobile.com/download/
2. 다운받은 파일 로컬 주소 연결
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
3. 스마트폰 Viewport 설정
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1">
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>jQuery Mobile Sample</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>
<body>
<div data-role="page" id="index">
<div data-role="header" data-theme="b">
<h1>jQuery Mobile</h1>
</div>
<div data-role="content">
</div>
<div data-role="footer" data-theme="b">
<h4><small>Copyright © All Rights Reserved.</small></h4>
</div>
</div></body>
</html>
[JQuery UI]콘텐츠 영역 접이식 패널 (0) | 2013.01.25 |
---|---|
간편한 header, footer (0) | 2013.01.25 |
폼 UI 기본 (0) | 2013.01.24 |
구글맵 API (0) | 2013.01.24 |
Jquery Mobile 태그 속성들 (0) | 2013.01.24 |