이 같은 individual.html
에 연결된 버튼을 만들 수 있습니다 :
여기
<a data-role="button" rel="external" href="index.html#your_virtual_page">BUTTON</a>
어떤 수의 작업 예이다 : 당신의 링크에 다음과 같은 파일이 되십시오 index.html
및 individual.html
:
-index.html
:
<html>
<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile.structure-1.1.1.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
</head>
<body>
<div id="home" data-role="page">
<div data-role="content">
HOME
</div>
</div>
<!-- THE VIRTUAL PAGE THAT WE WANT TO ACCESS FROM individual.html -->
<div id="p2" data-role="page">
<div data-role="content">
PAGE 2!!!
</div>
</div>
</body>
</html>
-individual.html
:
<html>
<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile.structure-1.1.1.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
</head>
<body>
<div id="home" data-role="page">
<div data-role="content">
<!-- YOUR LINK TO YOUR VIRTUAL PAGE IN index.html -->
<a data-role="button" rel="external" href="./index.html#p2">TO PAGE 2</a>
</div>
</div>
<div id="p1" data-role="page">
<div data-role="content">
P1
</div>
</div>
</body>
</html>
희망이 짝을 할 수 있습니다.
고마워 ..... itz working..great help –
환영 메이트! ;) – Littm