jQuery Mobile 시작하기

Jmnote (토론 | 기여)님의 2012년 2월 20일 (월) 09:10 판 (→‎example02.php)

1 example01.php

<!DOCTYPE html>
<meta charset="utf-8" />
<html lang="ko">
<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>내용 없음</body>
</html>

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 }}