하이브리드앱

본문 바로가기
사이트 내 전체검색


하이브리드앱
하이브리드앱

1. jQuery 모바일 페이지 구성

페이지 정보

작성자 관리자 댓글 0건 조회 494회 작성일 22-01-09 19:05

본문

1. jQuery 모바일 페이지 구성


실습 : jMobile01.html



<!doctype html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

<title>제이쿼리 모바일 연습</title>

<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.min.js"></script>

<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

</head>

<body>

<div data-role="page">

<div data-role="header" data-position="fixed">

<h1>Hello jQuery Moblie!!</h1>

</div>

<div role="main" class="ui-content">

안녕하세요.. 제이쿼리 모바일 페이지 입니다.

</div>

<div data-role="footer" data-position="fixed"> 

<h1>powered by jQueryMobile.com</h1>

</div>

</div>

</body>

</html>



1.PNG


실습 : jMobile01.html


<!doctype html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

<title>제이쿼리 모바일 연습</title>

<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-latest.min.js"></script>

<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

<script type="text/javascript">

function hi(){

alert("방가 방가!! ^^");

}

</script>

</head>

<body>

<div data-role="page">

<div data-role="header" data-position="fixed">

<h1>Hello jQuery Moblie!!</h1>

</div>

<div role="main" class="ui-content">

안녕하세요.. 제이쿼리 모바일 페이지 입니다.

<button onclick="hi();" >Touch Me~~~</button>

</div>

<div data-role="footer" data-position="fixed"> 

<h1>powered by jQueryMobile.com</h1>

</div>

</div>

</body>

</html>



2.PNG


실습 : jMobile01.html



<!doctype html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

<title>제이쿼리 모바일 연습</title>

<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.min.js"></script>

<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

</head>

<body>

<div data-role="page">

<div data-role="header" data-position="fixed">

<h1>Hello jQuery Moblie!!</h1>

</div>

<!--div data-role="content"-->

<div role="main" class="ui-content">

안녕하세요.. 제이쿼리 모바일 페이지 입니다.

<h3 class="ui-bar ui-bar-a">섹션제목</h3>

<div class="ui-body">

<p>섹션에 대한 내용 입니다.</p>

</div>

<h3 class="ui-bar ui-bar-b">섹션제목</h3>

<div class="ui-body">

<p>섹션에 대한 내용입니다.</p>

</div>

</div>

<div data-role="footer" data-position="fixed"> 

<h1>powered by jQueryMobile.com</h1>

</div>

</div>

</body>

</html>


ui-bar-a, ui-bar-b는 테마라고 생각하면 된다. 


3.PNG



실습 : jMobile01.html


<!doctype html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

<title>제이쿼리 모바일 연습</title>

<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-latest.min.js"></script>

<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

</head>

<body>

<div data-role="page">

<div data-role="header" data-position="fixed">

<h1>Hello jQuery Moblie!!</h1>

</div>

<!--div data-role="content"-->

<div role="main" class="ui-content">

안녕하세요.. 제이쿼리 모바일 페이지 입니다.

<h3 class="ui-bar ui-bar-a">섹션제목</h3>

<div class="ui-body">

<p>섹션에 대한 내용 입니다.</p>

</div>

<h3 class="ui-bar ui-bar-b">섹션제목</h3>

<div class="ui-body">

<p>섹션에 대한 내용입니다.</p>

</div>

<h3 class="ui-bar ui-bar-b ui-corner-all">섹션제목</h3>

<div class="ui-body ui-body-a ui-corner-all">

<p>섹션에 대한 내용입니다.</p>

</div>

<br/>

<div>

<div class="ui-bar ui-bar-a"><h3>섹션제목</h3></div>

<div class="ui-body ui-body-a">

<p>섹션내용</p>

</div>

</div><br/>

<div class="ui-body ui-body-b ui-corner-all">

<h3>섹션제목</h3>

<p>섹션내용</p>

</div>

</div>

<div data-role="footer" data-position="fixed"> 

<h1>powered by jQueryMobile.com</h1>

</div>

</div>

</body>

</html>



4.PNG


댓글목록

등록된 댓글이 없습니다.


개인정보취급방침 서비스이용약관 모바일 버전으로 보기 상단으로

TEL. 063-469-4551 FAX. 063-469-4560 전북 군산시 대학로 558
군산대학교 컴퓨터정보공학과

Copyright © www.leelab.co.kr. All rights reserved.