jQuery Mobile 시작하기

Jmnote (토론 | 기여)님의 2014년 7월 10일 (목) 01:39 판 (→‎example01.php)

1 개요

jQuery 모바일 시작하기
jQuery 모바일 튜토리얼

HTML문서에서 jQuery모바일을 사용하려면 다음 3가지를 추가해야 한다.

  • jQuery 자바스크립트
  • jQuery모바일 자바스크립트
  • jQuery모바일 CSS

<img src='http://demos.jquerymobile.com/1.4.0/_assets/img/jquery-logo.png' style='width:200px' />

2 example02.php

<!DOCTYPE html>
<meta charset="utf-8" />
<html>
<head>
	<title>안녕 친구들</title>
	<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
	<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
	<script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script>
</head>
<body> 
<div data-role="page">
    <div data-role="header">
        <h1>헤더</h1>
    </div>
    <div data-role="content">
        <div id="banner">
            <h2>배너</h2>
        </div>
        <p>다람쥐 헌 쳇바퀴에 타고파.</p>
        <ul data-role="listview" data-inset="true">
            <li><a href="#">안녕</a></li>
            <li><a href="#">친구들</a></li>
        </ul>
    </div>
    <div data-role="footer">
        <h4>푸터</h4>
    </div>
</div>
</body>
</html>

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}