2013-08-26 27 views
2

我喜歡用jquery移動來構建一個web應用程序。 當我使用在這裏「jQuery Mobile的登入彈出」: http://jquerymobile.com/demos/1.3.0-rc.1/docs/demos/widgets/popup/我如何禁用關閉jquery移動彈出

,我喜歡定製登入彈出的預裝和用戶無法將其關閉。就像HTML中的靜態表單一樣。因爲沒有彈出或消失的彈出窗口,用戶不能登錄和不能使用服務。我怎樣才能做到這一點??

謝謝你的時間在這裏註冊彈出的來源。

<a href="#popupLogin" data-rel="popup" data-position-to="window" data-role="button" data-inline="true" data-icon="check" data-theme="a" data-transition="pop">Sign in</a> 
<div data-role="popup" id="popupLogin" data-theme="a" class="ui-corner-all"> 
    <form> 
     <div style="padding:10px 20px;"> 
      <h3>Please sign in</h3> 
      <label for="un" class="ui-hidden-accessible">Username:</label> 
      <input type="text" name="user" id="un" value="" placeholder="username" data-theme="a"> 
      <label for="pw" class="ui-hidden-accessible">Password:</label> 
      <input type="password" name="pass" id="pw" value="" placeholder="password" data-theme="a"> 
      <button type="submit" data-theme="b" data-icon="check">Sign in</button> 
     </div> 
    </form> 
</div> 
+0

爲什麼彈出可言,爲什麼不把他們帶到登錄頁面? – TravisO

+0

,因爲我喜歡彈出窗口的ui ..有沒有其他方式使用彈出窗口作爲主要的用戶界面? – hiun

回答

2

只需添加

data-dismissible="false" 

在彈出