Jmnote bot (토론 | 기여) 잔글 (봇: JQuery 모바일(을)를 JQuery Mobile(으)로 분류 대체함) |
Jmnote bot (토론 | 기여) 잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==)) |
||
42번째 줄: | 42번째 줄: | ||
*[[대화 상자]] | *[[대화 상자]] | ||
==참고 | ==참고== | ||
*http://stackoverflow.com/questions/6101370/creating-a-dialog-jquery-mobile | *http://stackoverflow.com/questions/6101370/creating-a-dialog-jquery-mobile | ||
[[분류:JQuery Mobile]] | [[분류:JQuery Mobile]] |
2017년 6월 27일 (화) 04:53 판
1 개요
- jQuery모바일 대화상자
- jQuery모바일 다이얼로그
- a 태그에
data-rel="dialog"
추가 - 하나의 html 문서 내에서 구현하려면 a 태그의 href와 page섹션의 data-url을 맞춰주면 된다.
- 예제: http://zetawiki.com/ex/jquery-mobile/jqm_dialog01.php
2 소스코드
html
Copy
<!DOCTYPE html>
<html>
<head>
<title>jQuery모바일 대화상자 예제</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
</head>
<body>
<section data-role="page">
<header data-role="header"><h1>헤더</h1></header>
<div data-role="content">
<p>내용</p>
<p><a href="dialog_page" data-rel="dialog" data-role="button">대화상자 열기</a></p>
</div>
<footer data-role="footer"><h1>푸터</h1></footer>
</section>
<section data-role="page" data-url="dialog_page">
<header data-role="header"><h1>대화상자 헤더</h1></header>
<div data-role="content">
<p>대화상자 내용</p>
</div>
<footer data-role="footer"><h1>대화상자 푸터</h1></footer>
</section>
</body>
</html>
3 같이 보기
4 참고
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.