language:jquery:jquery_mobile_basic
문서의 이전 판입니다!
~~Title:jQuery Mobile 모바일~~
jQueryMobile 포함하기
jquerymobile 다운로드에 가면 최신 버젼의 복붙용 코드 있음.
<!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>
기본 단일 page 템플릿
<!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>
링크 방식, a 태그의 동작
language/jquery/jquery_mobile_basic.1622463641.txt.gz · 마지막으로 수정됨: 2024/04/23 22:43 (바깥 편집)