사용자 도구

사이트 도구


language:jquery:jquery_mobile_basic

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
language:jquery:jquery_mobile_basic [2017/02/22 12:00] – 만듦 kieunslanguage:jquery:jquery_mobile_basic [2024/04/23 22:44] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
 +~~Title:jQuery Mobile 모바일~~
  
-링크 방식, a 태그의 동작+{{section>language:jquery:jquery_문서_목록#jQuery_문서_목록&nofooter&noeditbtn}} 
 + 
 +====== jQueryMobile 포함하기 ====== 
 + 
 +[[https://jquerymobile.com/download/|jquerymobile 다운로드]]에 가면 최신 버젼의 복붙용 코드 있음. 
 + 
 +<code html> 
 +<!DOCTYPE html>  
 +<html> 
 +<head> 
 +  <title>Page Title</title> 
 +  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 +  <link rel="stylesheet" href="http://code.jquery.com/mobile/[version]/jquery.mobile-[version].min.css" /> 
 +  <script src="http://code.jquery.com/jquery-[version].min.js"></script> 
 +  <script src="http://code.jquery.com/mobile/[version]/jquery.mobile-[version].min.js"></script> 
 +</head> 
 + 
 +<body> ...content goes here... </body> 
 +</html> 
 +</code> 
 + 
 +===== 기본 단일 page 템플릿 ===== 
 + 
 +<code html> 
 +<!DOCTYPE html> 
 +<html> 
 + 
 +<head> 
 +  <title>메인</title> 
 +  <meta charset="utf-8"> 
 +  <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
 + 
 +  <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> 
 +<style> 
 +</style> 
 +</head> 
 +<!-- END of head --> 
 + 
 +<body> 
 +  <div data-role="page"> 
 + 
 +    <div data-role="header"> 
 +      <h1>헤더</h1> 
 +    </div><!-- /header --> 
 + 
 +    <div role="main" class="ui-content"> 
 +      <!-- 본문은 여기에 --> 
 +    </div><!-- /content --> 
 + 
 +    <div data-role="footer"> 
 +      <h4>푸터</h4> 
 +    </div><!-- /footer --> 
 + 
 +  </div><!-- /page --> 
 +</body> <!-- END of body --> 
 + 
 +</html> 
 +</code> 
 + 
 +====== 그리드 grid ====== 
 + 
 +  * [[https://demos.jquerymobile.com/1.4.5/grids/]] 
 + 
 +가로 그리드를 넣은 경우, 내부의 아이템을 자동을 판독하는 것은 아니고 개수에 맞게 클래스를 지정해줘야 한다. 
 + 
 +아래, 링크형 버튼을 2개 가로 배치한 것. 
 + 
 +<code html> 
 +<div class="ui-grid-a"> 
 +  <div class="ui-block-a"><a href="#" class="ui-shadow ui-btn ui-corner-all">Anchor1</a></div> 
 +  <div class="ui-block-b"><a href="#" class="ui-shadow ui-btn ui-corner-all">Anchor2</a></div> 
 +</div> 
 +</code> 
 + 
 +  * **ui-grid-a** : 가로 2개 
 +  * **ui-grid-b** : 가로 3개 
 +  * **ui-grid-c** : 가로 4개 
 + 
 + 
 +====== 링크 방식, a 태그의 동작 ======
  
   * ajax로 href에 설정된 페이지 내용을 읽어 온 다음, 화면을 갱신하는 방식으로 처리한다.   * ajax로 href에 설정된 페이지 내용을 읽어 온 다음, 화면을 갱신하는 방식으로 처리한다.
language/jquery/jquery_mobile_basic.1487732400.txt.gz · 마지막으로 수정됨: 2024/04/23 22:43 (바깥 편집)