2013-08-26 26 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" 

在弹出