本文实例效果其实就是一个点击弹窗效果,供大家参考,具体内容如下
先上jquery代码
HTML代码
<div class="modal" id="myModal" tabindex="-1">
<div class="modal-dialog modal-sm">
<div class="modal-content"> <div class="modal-header"> <button class="close" data-dismiss="modal"> <span>×</span> </button> <h4 class="modal-title"><a href="/tag/yonghu/" target="_blank" class="keywords">用户</a><a href="/tag/denglu/" target="_blank" class="keywords">登录</a></h4> </div> <div class="modal-body"> <div class="form-group has-success has-<a href="/tag/Feed/" target="_blank" class="keywords">Feed</a>back"> <label for="username" class="col-sm-3 control-label">账号</label> <div class="col-sm-9"> <span class="glyphicon glyphicon-user form-control-<a href="/tag/Feed/" target="_blank" class="keywords">Feed</a>back" aria-hidden="true"></span> <span id="inputSuccess3Status" class="sr-only">(success)</span> <input type="text" id="username" name="username" class="form-control" placeholder="请输入您的<a href="/tag/yonghuming/" target="_blank" class="keywords">用户名</a>" title="可包含<a href="/tag/zhongwen/" target="_blank" class="keywords">中文</a>数字和常用字符" onkeydown="if(event.keyCode==32||event.keyCode==13){return false;}"> <!-- 禁用空格和回车 --> </div> </div> <div class="form-group has-success has-<a href="/tag/Feed/" target="_blank" class="keywords">Feed</a>back"> <label for="password" class="col-sm-3 control-label">密码</label> <div class="col-sm-9"> <span class="glyphicon glyphicon-lock form-control-<a href="/tag/Feed/" target="_blank" class="keywords">Feed</a>back" aria-hidden="true"></span> <span id="inputSuccess3Status" class="sr-only">(success)</span> <input type="password" id="password" name="password" class="form-control" maxlength="12" placeholder="请输入您的密码" oncopy="return false" oncut="return false" onpaste="return false" title="" onkeydown="if(event.keyCode==32||event.keyCode==13){return false;}"> </div> </div> </div> <div class="modal-footer"> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-success" id="login">现在<a href="/tag/denglu/" target="_blank" class="keywords">登录</a> »</button> </div> </div> </div> </div>
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程之家。