html+css唯美登录页面,代码提供(效果展示)「建议收藏」

html+css唯美登录页面,代码提供(效果展示)「建议收藏」效果图所有代码<!DOCTYPEhtml><htmllang=”en”><head><metacharset=”UTF-8″><metahttp-equiv=”X-UA-Compatible”content=”IE=edge”><metaname=”viewport”content=”width=device-width,initial-scale=1.0″><ti

大家好,又见面了,我是你们的朋友全栈君。

效果图

在这里插入图片描述

所有代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登陆页面</title>
        <!-- author xjt -->
</head>
<body>
    <div class="login">
        <h2>登陆\注册</h2>
        <div class="login_form">
            <span>账号:</span>
            <input type="text" placeholder="请输入账号">
            <br>
            <span>密码:</span>
            <input type="password" placeholder="请输入密码">
        </div>
        <div class="btn">
            <button class="login_btn" onclick="login()">登 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;录</button>
        </div>
    </div>
</body>
<script> function login(){ 
      console.log('登录按钮点击了'); } </script>
<style> body{ 
      padding: 0; margin: 0; height: 100vh; display: flex; justify-content: center; background-image: linear-gradient(#a18cd1 0%, #fbc2eb 100%); background-size: cover; flex: 1; align-items: center; } .login{ 
      text-align: center; margin: 0 auto; width: 600px; height: 520px; background-color: rgba(87, 86, 86, 0.2); border-radius: 25px; box-shadow: 5px 2px 35px -7px #ff9a9e; } .login h2{ 
      margin-top: 40px; color: aliceblue; font-weight: 100; } .login_form{ 
      padding: 20px; } .login_form span{ 
      color: rgb(131, 220, 255); font-size: 18px; font-weight: 100; } .login_form input{ 
      background-color: transparent; width: 320px; padding: 2px; text-indent: 2px; color: white; font-size: 20px; height: 45px; margin: 30px 30px 30px 5px; outline: none; border: 0; border-bottom: 1px solid rgb(131, 220, 255); } input::placeholder{ 
      color: #fbc2eb; font-weight: 100; font-size: 18px; font-style: italic; } .login_btn{ 
      background-color: rgba(255, 255, 255, 0.582); border: 1px solid rgb(190, 225, 255); padding: 10px; width: 240px; height: 60px; border-radius: 30px; font-size: 30px; color: rgb(100, 183, 255); font-weight: 100; margin-top: 15px; } .login_btn:hover{ 
      box-shadow: 2px 2px 15px 2px rgb(190, 225, 255); background-color: transparent; color: white; /* 选择动画 */ animation: login_mation 0.5s; } /* 定义动画 */ @keyframes login_mation { 
      from { 
      background-color: rgba(255, 255, 255, 0.582); box-shadow: 0px 0px 15px 2px rgb(190, 225, 255); } to { 
      background-color: transparent; color: white; box-shadow: 2px 2px 15px 2px rgb(190, 225, 255); } } </style>

</html>

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/142728.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • pycharm上传代码到git_gitee收费吗

    pycharm上传代码到git_gitee收费吗前提:1、在码云https://gitee.com/ 中已经注册了账号,并且已经创建了仓库2、已经安装了git客户端: 3、在settings中设置gitee账户,登入:  、 3、在pycharm中安装gitee插件:file–setttings–plugins–搜索gitee,安装:  4、安装成功后检查:  5、提价本地项目代码到gitee:选中要提交的项目后VCS-…

    2022年8月26日
  • 在SQL存储过程中给条件变量加上单引号

    在SQL存储过程中给条件变量加上单引号,不加语句就会出问题,以下就是在存储过程中将条件where设置成了动态变化的,给where赋完值再和前面的语句拼接,再execute(SQL)@d_start

    2021年12月24日
  • 死锁原因总结

    死锁原因总结

    2022年3月2日
  • Jdk下载需要登录账号解决「建议收藏」

    Jdk下载需要登录账号解决「建议收藏」大家好,目前在官网下载jdk1.8的时候需要登陆,这边分享一个账号,方便下载:账号:2696671285@qq.com密码:Oracle123

    2022年7月16日
  • Python打包exe,以及解决闪退

    Python打包exe,以及解决闪退Python打包exe打开终端,中输入命令pipinstallpyinstaller后回车。安装失败尝试用管理员方式打开输入命令pyinstaller,回车显示安装成功。3.打开pycharm的底部的【Terminal】输入:pyinstaller–console–onefile······.py,或者在路径下按住shift右键单击空白打开powershel…

    2022年5月18日
  • Android中setPositiveButton和setNegativeButton

    Android中setPositiveButton和setNegativeButtonsetPositiveButton表示设置弹框后的确定按钮,setNegativeButton表示设置弹框后的取消按钮。setPositiveButton是实现android.content.DialogInterface.OnClickListener接口后的方法普通的onclick()是view下的,完全是两个不同的实现。又在View类中也有OnClickListener()方法,而我们…

    2022年6月15日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号