2012-05-16 4 views
0

팝업 DIV 숨기지 않습니다 : 클릭하면 로그인 폼을 팝업해야 내가 로그인 버튼을jQuery를 모바일 내가 jQuery를 모바일에 문제가

을하지만, 페이지가로드 될 때 팝업 DIV이다 숨겨진 게 아니야 ...

내가 (jQuery 모바일 속성을 추가하여) 숨길 수있는 방법은 약 100 가지가 있지만 아무 것도 작동하지 않는다.

코드 :

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" /> 
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> 
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script> 


<a href="#popupLogin" data-rel="popup" data-role="button" data-transition="pop" data-inline="true">Sign in</a> 

<div data-role="popup" id="popupLogin" data-theme="a" data-overlay-theme="b" > 
    <h3>Please sign in</h3> 
    <label for="un">Username:</label> 
    <input id="un" type="text" data-theme="a" placeholder="username" value="" name="user" /> 
    <label for="pw">Password:</label> 
    <input id="pw" type="password" data-theme="a" placeholder="password" value="" name="pw"> 
    <div data-theme="b" aria-disabled="false"> 
</div> 

누군가가 내가 잘못 알고 있나요? thanks

+0

왜 didnt가 사용하는 디스플레이 없음 속성 #popupLogin을 시도 할 수 있을까? – ShibinRagh

+0

@ShibinRagh jQuery 모바일 프레임 워크가 자동 초기화해야 함 ... "이 플러그인은 data-role ="popup "속성을 가진 div가 포함 된 모든 페이지에서 자동으로 초기화됩니다."-> http://jquerymobile.com/branches/popup -widget/docs/pages/popup/index.html –

+0

코드를 jsfiddle 게시하십시오. – user700284

답변

관련 문제