JQuery Mobile 弹出式登录框方法

JQuery 1463 0 2013-11-14

JQuery Mobile 弹出式登录框方法
代码如何(把代码放在page块里):
    <a href="#login" data-rel="popup" data-position-to="window" data-role="button">Login</a>   
    <div data-role="popup" id="login" data-theme="a">   
        <form style="padding:10px 20px;">   
            <h3>Please sign in</h3>   
            <label for="un" class="ui-hidden-accessible">Username:</label>   
            <input type="js" name="user" id="un" placeholder="username" />   
            <label for="pw" class="ui-hidden-accessible">Password:</label>   
            <input type="password" name="pass" id="pw" placeholder="password" />   
            <button type="submit" data-theme="b">Sign in</button>   
        </form>   
    </div>  

效果:

上一篇:没有了

下一篇:经典收藏 50个jQuery Mobile开发技巧集萃

讨论数量:0

请先登录再发表讨论。 2024-04-29

天涯网魂
3 杠 5 星
TA 的文章
TA 的随言
TA 的资源链