登录按钮点击之后本页出现一个小的页面,类似于弹窗

登录按钮点击之后本页出现一个小的页面,类似于弹窗

据说还可以使用jquery-ui,我还没有试过

将登录之后显示的弹窗写在这个页面里面,代码如下

<input type="button" value="登录" class="login_btn" id="login_btn">

    <!--登录页面-->
    <div class="login_kuang" id="login_kuang">
        <h3>登录<span class="login_close" id="login_close"><i class="iconfont"><span style="color: rgb(57, 51, 255); font-family: Monaco; font-size: 11px;">&#xe600;</span></i></span></h3>
        <div class="loginContent">
            <form action="<%=request.getRequestURI()%>/newLogin" method="post" name="login_form">
                <p id="info_error"></p>
                <input type="text" placeholder="用户名/邮箱" id="login_user" name="login_user" class="login_user">
                <p id="user_error"></p>
                <input type="password" placeholder="密码" id="login_pass" name="login_pass" class="login_pass">
                <p id="pass_error"></p>
                <label for="rementPass"><input type="checkbox" checked id="rementPass" class="rementPass"> 记住密码</label><span class="forgetPass" id="forgetPass">忘记密码</span><br>
            </form>
            <input type="button" value="登录" class="login_btn" id="login_submit2">
        </div>
        <p class="login_botP">还没有账号?<a href="page/register.html" id="hurreyUpRge" class="hurreyUpRge">立即注册!</a></p>
    </div>
    //登录按钮
    $("#login_btn").click(function(){
        $("#info_error").html("");
        $("#user_error").html("");
        $("#pass_error").html("");
        $("#login_kuang").show(1000);
    });
    $("#login_close").click(function(){
        $("#login_kuang").hide(1000);
    });
我猜下面这套css是来控制那个关掉的x号的,就是<i class="iconfont"> &#xe600;</i>

@font-face {font-family: "iconfont";
  src: url('iconfont.eot?t=1474357075'); /* IE9*/
  src: url('iconfont.eot?t=1474357075#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('iconfont.woff?t=1474357075') format('woff'), /* chrome, firefox */
  url('iconfont.ttf?t=1474357075') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
  url('iconfont.svg?t=1474357075#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
  font-family:"iconfont" !important;
  font-size:16px;
  font-style:normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}
.icon-close01:before { content: "\e600"; }
.icon-close:before { content: "\e601"; }
.icon-zhengque:before { content: "\e602"; }
.icon-iconfontzhengque:before { content: "\e603"; }
.icon-suo:before { content: "\e604"; }
.icon-shousuo:before { content: "\e605"; }


  • 3
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值