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 |