잔글 (Jmnote 사용자가 JQuery모바일 다이얼로그 문서를 JQuery Mobile 다이얼로그 문서로 옮겼습니다) |
Jmnote bot (토론 | 기여) 잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight )) |
||
(사용자 2명의 중간 판 8개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
{{소문자}} | |||
==개요== | ==개요== | ||
;jQuery모바일 대화상자 | ;jQuery모바일 대화상자 | ||
4번째 줄: | 5번째 줄: | ||
*a 태그에 <code>data-rel="dialog"</code> 추가 | *a 태그에 <code>data-rel="dialog"</code> 추가 | ||
*하나의 html 문서 내에서 구현하려면 a 태그의 href와 page섹션의 data-url을 맞춰주면 된다. | *하나의 html 문서 내에서 구현하려면 a 태그의 href와 page섹션의 data-url을 맞춰주면 된다. | ||
*예제: http://zetawiki.com/ex/jquery-mobile/jqm_dialog01.php | |||
==소스코드== | ==소스코드== | ||
< | <syntaxhighlight lang='html5'> | ||
<!DOCTYPE html> | <!DOCTYPE html> | ||
<html> | <html> | ||
33번째 줄: | 35번째 줄: | ||
</body> | </body> | ||
</html> | </html> | ||
</ | </syntaxhighlight> | ||
==같이 보기== | ==같이 보기== | ||
*[[jQuery UI 다이얼로그]] | *[[jQuery UI 다이얼로그]] | ||
*[[jQuery 모바일]] | |||
*[[대화 상자]] | |||
==참고 | ==참고== | ||
*http://stackoverflow.com/questions/6101370/creating-a-dialog-jquery-mobile | *http://stackoverflow.com/questions/6101370/creating-a-dialog-jquery-mobile | ||
[[분류:JQuery | [[분류:JQuery Mobile]] |
2020년 11월 2일 (월) 02: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
로그인하시면 댓글을 쓸 수 있습니다.