三个漂亮的网页登录页面源码及素材——可用于前端初学者练习HTMLCSS

article/2025/10/31 4:55:59

注:这三个登录页面涉及到的图片素材可自行寻找,字体图标素材可以在阿里字体图标库获取(https://www.iconfont.cn/home/index?spm=a313x.7781069.1998910419.2),如需原版素材可联系作者QQ(3416252112)

废话不多说

先上图为敬!!

在这里插入图片描述

文件目录结构

请添加图片描述

FIRST

请添加图片描述

1、html源码(index.html)
<!DOCTYPE html>
<html lang="zh">
<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><link rel="stylesheet" href="./css/style.css"><link rel="stylesheet" href="./iconfont/iconfont.css">
</head>
<body><div class="outer_box"><div class="back_one"></div><div class="back_two"></div><div class="login_box"><h3 class="title">注册页面</h3><p><i class="iconfont">&#xe773;</i><input type="text" value="Username"></p><p><i class="iconfont">&#xe774;</i><input type="text" value="Password"></p><p class="logIn_btn"><span class="left_line"></span><span class="iconfont">&#xe600;</span><span class="right_line"></span></p><p class="login"><span>注册</span></p></div></div>
</body>
</html>
2、css源码(style.css)
* {margin: 0px;padding: 0px;
}body {background-color: wheat;
}
input {border: none;border-bottom: 1px solid #dfdfdf;padding: 0px 0px 5px 15px;margin-left: 15px;font-size: 15px;color: #dfdfdf;
}
.outer_box {position: relative;height: calc(100vh);
}/* 背景颜色 */
.back_one {position: absolute;width: 50%;height: 100%;left: 0px;background-color: #7BB6B6;
}
.back_two {position: absolute;width: 50%;height: 100%;right: 0px;background-color: #E3D0AD;
}/* 登录窗口 */
.login_box {width: 300px;height: 350px;background-color: #fff;position: absolute;left: 50%;top: 50%;transform: translate(-50%, -50%);box-shadow: 10px 10px #80808079;
}/* 标题 */
.login_box .title {width: 100%;text-align: center;margin: 35px 0px 35px 0px;font-size: 30px;color: #52565B;
}/* p标签的公共样式 */
.login_box p {width: 100%;height: 40px;margin-top: 15px;text-align: center;justify-content: center;
}/* iconfont */
.login_box p i {color: #52565B;font-size: 25px;
}/* 登录按钮的样式 */
.login_box .logIn_btn {width: 100px;height: 40px;line-height: 40px;margin-left: 100px;background-color: #EBF7F3;color: #7BB6B6;border-radius: 5px;box-shadow: 0px 0px 3px #e6e5e5;font-weight: bold;display: flex;
}
.login_box .logIn_btn span {display: block;width: 33%;/* height: 100%; */
}
.login_box .logIn_btn .left_line {height: 20px;margin-top: 20px;border-left: 2px solid #7BB6B6;
}
.login_box .logIn_btn .right_line {height: 20px;border-right: 2px solid #7BB6B6;
}/* 注册按钮 */
.login_box .login {width: 100px;height: 40px;margin: 20px 0px 0px 100px;color: #E3D0AD;font-weight: bold;line-height: 40px;
}

SECOND

请添加图片描述

1、html源码(index.html)
<!DOCTYPE html>
<html lang="zh">
<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><link rel="stylesheet" href="./css/style.css"><link rel="stylesheet" href="./iconfont/iconfont.css">
</head>
<body><div class="outer_box"><div class="filterImg"></div><div class="login_box"><h1><img src="./img/user.png" alt=""></h1><p><i class="iconfont">&#xe74f;</i><input type="text" value="邮箱"></p><p><i class="iconfont">&#xe774;</i><input type="text" value="登录密码"></p><p class="logIn_btn">登录</p><div><span>立即注册</span><span>忘记密码</span></div></div></div>
</body>
</html>
2、css源码(style.css)
* {margin: 0px;padding: 0px;color: #fff;
}input {border: none;
}
.filterImg {width: 100%;height: 100%;background-image: url('../img/backimg.jpg');background-size: 100% 100%;
}
.outer_box {width: 100%;position: relative;height: calc(100vh);
}/* 登录窗口 */
.login_box {width: 320px;height: 400px;border: 1px solid #fff;background-color: rgba(189, 156, 156, 0.233);border-radius: 10px;position: absolute;left: 75%;top: 50%;transform: translate(-50%, -50%);
}/* 用户头像 */
.login_box h1 {width: 100%;height: 112px;margin: 34px 0px;text-align: center;
}
.login_box h1 img{width: 90px;height: 90px;border-radius: 55px;padding: 10px;box-shadow: 0px 0px 5px #fff;border: 1px solid #fff;
}/* p标签公共样式 */
.login_box p {/* width: 100%; */width: 260px;height: 35px;margin: 20px 30px;line-height: 35px;text-align: center;border: 1px solid #fff;border-radius: 27px;
}
/* 邮箱与登录密码 */
.login_box i {font-size: 20px;padding-left: 5px;
}
input {width: 200px;height: 35px;padding-left: 20px;border: none;background: none;
}/* 登录按钮 */
.logIn_btn {color: rgb(255, 166, 181);background-color: rgba(255, 255, 255, 0.863);
}/* 注册与忘记密码 */
.login_box div {width: 260px;font-size: 12px;margin: 0px 30px;display: flex;justify-content: space-between;
}

THIRD

请添加图片描述

1、html源码(index.html)
<!DOCTYPE html>
<html lang="zh">
<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><link rel="stylesheet" href="./css/style.css">
</head>
<body><div class="outer_box"><div class="inner_box"><div class="left_label"></div><div class="center_form"><p class="title"><span>S&nbsp;i&nbsp;g&nbsp;n&nbsp;I&nbsp;n&nbsp;&nbsp;&nbsp;&nbsp;F&nbsp;o&nbsp;r&nbsp;m</span></p><p><input type="text" value="User Name"></p><p><input type="text" value="Password"></p><div class="chk"><span><input type="checkbox" id="dd">Remember me?</span><span>Forgot password?</span></div></div><div class="right_label"></div><div class="signIn_btn"><span>SIGN IN</span></div></div></div>
</body>
</html>
2、css源码(style.css)
* {padding: 0px;margin: 0px;color: #fff;
}/* 外部容器 */
.outer_box {position: relative;width: 100%;height: 100vh;background-image: url('../img/backimg.jpg');background-size: 100% 100%;
}/* 内部登录窗口 */
.inner_box {position: absolute;width: 450px;height: 350px;/* background-color: rgba(127, 255, 212, 0.5); */left: 25%;top: 50%;transform: translate(-50%, -50%);/* display: flex; */
}
.inner_box div {float: left;
}
/* 登录表单 */
.inner_box .center_form {width: 410px;height: 300px;background-color: rgba(134, 221, 221, 0.219);box-shadow: 0px 0px 3px rgb(76, 219, 219);
}
.inner_box .center_form p {height: 60px;width: 410px;text-align: center;
}
.title {height: 50px !important;line-height: 50px;background-color: rgba(82, 202, 182, 0.575);margin-bottom: 40px;
}input {width: 310px;margin: 10px 50px 0px 40px;height: 35px;padding-left: 20px;background: none;border: none;border-bottom: 1px solid #fff;font-size: 15px;
}
/* remember me */
.center_form .chk{width: 330px;height: 60px;line-height: 60px;margin: 10px 40px 0px 40px;display: flex;justify-content:space-between;font-size: 14px;
}
.chk span input {width: 15px;height: 15px;margin: 10px;
}/*两侧小三角形 */
.inner_box .left_label,.right_label {width: 0px;height: 0px;margin-top: 280px;
}
.inner_box .left_label {border-top: solid 10px rgba(255, 255, 255, 0);border-right: solid 10px rgb(255, 255, 255);border-bottom: solid 10px rgb(255, 255, 255);border-left: solid 10px rgba(255, 255, 255, 0);
}
.inner_box .right_label {border-top: solid 10px rgba(255, 255, 255, 0);border-right: solid 10px rgba(255, 255, 255, 0);border-bottom: solid 10px rgb(255, 255, 255);border-left: solid 10px rgb(255, 255, 255);
}
/* 登录按钮 */
.signIn_btn {height: 50px;width: 450px;line-height: 50px;background-color: #fff;text-align: center;
}
.signIn_btn span {font-size: 20px;color:rgb(93, 182, 204);
}

END

靓仔/靓妹、大哥/大姐, 给个赞再 say拜拜,行不行???在这里插入图片描述


http://chatgpt.dhexx.cn/article/1hYPvN8O.shtml

相关文章

前端素材库网站集合——网站集合

UI矢量图库 1.摄图网 https://699pic.com/ https://699pic.com/tupian/tubiao.html?from215 图片素材图库 1.图库 https://picsum.photos/ 随机获取图片&#xff1a;&#xff08;每次刷新都可以获取一个新的图片&#xff09; http://picsum.photos/360/460?random1<d…

分享三个免费的前端模板网站

1、模板之家 网页模板,网站模板,DIVCSS模板,企业网站模板下载 http://www.cssmoban.com/ 2、站长之家 HTML5模板 HTML5模板免费下载 https://sc.chinaz.com/tag_moban/html5.html 3、jQuery之家 自由分享jQuery、html5、css3的插件库 http://www.htmleaf.com/

前端好用的素材网站分享

前端设计推荐的一些网站&#xff09; 1.[站酷](https://www.zcool.com.cn/)2.[ColorPalette](https://arco.design/palette/list)3.[unDraw](https://undraw.co/illustrations)4.[OUCH](https://icons8.cn/illustrations/style--pale)&#xff08;应该是叫这个吧&#xff09;5.…

前端常用素材网站整理

最近整理了网页收藏夹&#xff0c;将平时遇到与前端相关的素材网站归置归置 注意&#xff1a;有的下载模版需要充值 PPChart 让图表更简单 echarts图表案例 很全 啥图都有 http://www.ppchart.com/#/ ———————————————————————————————————…

Redis可视化管理工具推荐

AnotherRedisDesktopManager 码云地址&#xff1a;https://gitee.com/qishibo/AnotherRedisDesktopManager github地址&#xff1a;https://github.com/qishibo/AnotherRedisDesktopManager/ 很好用。推荐一下。

Redis 管理工具 RedisInsight

Redis 安装好并运行一段时间后&#xff0c;如何清晰的看到 Redis 占了多大内存&#xff0c;有多少个 KEY&#xff0c;所占的网络如何&#xff0c;这个在 RedisInsight 下就是一目了然了&#xff0c;特别方便。 下载也特别简单&#xff0c;到此网站下载你想要的版本就行。 ps&a…

Redis 管理工具 TreeNMS

今日&#xff0c;日月给大家介绍一款redis管理工具TreeNMS.下面我就详细给大家介绍一下treeNMS的安装及各项功能。 1、下载安装 下载地址&#xff1a;http://www.treesoft.cn/dms.html 下载到的是一个zip包&#xff0c;解压到指定的目录即可 windows下&#xff0c;直接双…

在window系统安装reids、并使用Redis可视化工具进行管理

下载地址 https://github.com/tporadowski/redis/releases 选择 Redis-x64-5.0.14.1.msi (微软的安装包 下载 安装好之后 打 开 一 个 cmd 窗 口 使 用 cd 命 令 切 换 目 录 到 安装目录下 D:\Program Files\Redis 执行命令 redis-server.exe redis.windows.conf 接下来…

Redis 可视化工具

Redis 可视化工具 Redis做为现在web应用开发的黄金搭担组合&#xff0c;大量的被应用&#xff0c;广泛用于存储session信息,权限信息&#xff0c;交易作业等热数据。Redis作为业界最好的缓存数据库&#xff0c;过去几年发展很快。相对Memcached&#xff0c;Redis提供了更多种数…

一款可视化的Redis管理工具-Another Redis DeskTop Manager

文章目录 前言项目地址 前言 “ Another Redis DeskTop Manager 是 GitHub 上的一个开源项目&#xff0c;是 Redis 可视化管理的利器&#xff0c;提供在 Windows、MacOS 平台的安装包&#xff0c;体积小&#xff0c;完全免费。” 提供了以可视化的方式管理 Redis 的功能&#…

Redis管理工具(Redis Assistant)更新啦

目前更新到1.3.0.0版本&#xff0c;引入以下功能&#xff08;下载链接&#xff1a;http://www.redisant.cn/&#xff09; 内存分析&#xff1a;使用Redis Assistant及时了解整个数据库内存使用情况&#xff0c;排查故障的好帮手。 多样化搜索&#xff1a;可以搜索Key&#xf…

宝塔面板Redis数据管理工具hash和zset类型报错的解决方法

问题描述 在宝塔面板的Redis数据管理工具中,查询其他数据都没问题,但是查询hash和zset类型的数据时页面上会出现一个黑框,并且右侧没有出现数据. (写文章的时候已经解决了,所以没截到图,如果你也有这个问题,那你应该能明白我在说啥) 查了半天发现竟然没人提过这个问题,既然没有…

Redis集群管理工具redis-trib

Redis3.0 及其之后的版本提供了 redis-cluster 集群支持&#xff0c;用于在多个redis节点间共享数据&#xff0c;以提高服务的可用性。构建 redis-cluster 集群可以通过 redis-trib.rb 工具来完成。redis-trib.rb 是redis官方提供的一个集群管理工具&#xff0c;集成在redis安装…

推荐一款 Redis 可视化管理工具——Another Redis Desktop Manager

文章目录 :pushpin: 简介:clipboard: 基础配置基础设置 :pencil2: 使用方法1.连接Redis实例2.监控Redis性能3.执行Redis命令 :tada:下载安装1.下载地址2.安装 &#x1f4cc; 简介 Redis是一种快速、高效的NoSQL数据库&#xff0c;广泛用于缓存、会话管理、消息队列等领域。为了…

mac安装redis管理工具rmd

2019独角兽企业重金招聘Python工程师标准>>> 官网教程&#xff1a;http://docs.redisdesktop.com/en/latest/install/#build-from-source 1、从官网下载最新源码 转载于:https://my.oschina.net/carmen001/blog/825983

redis web工具

安利web版redis管理工具一款&#xff0c;首先来个正面照 界面看上去挺简洁&#xff0c;下面就演示如何得到他 本机 Python 2.7.5 Linux dev 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux 命令行&#xff1a; git clone …

Redis 管理工具:Another Redis DeskTop Manager

Another Redis DeskTop Manager 简介 Another Redis DeskTop Manager 是 Redis 可视化管理工具&#xff0c;体积小&#xff0c;完全免费。最重要的是稳定啊&#xff0c;而且操作简单、方便&#xff0c;特别推荐~ ▶ github 地址 ▶ 快速下载&#xff08;github下载太慢&…

Macos安装redis及redis可视化管理工具

目录 1.首先将clashX的系统代理复制为终端代理&#xff0c;这样可以使用国外镜像源 2.安装完成之后会有如下的提示&#xff1a; 3.redis的安装路径&#xff1a; 4.将redis设置为后台运行 5.运行redis&#xff1a; 6.停止redis服务&#xff1a; 7.安装可视化工具 1.首先将…

开源Redis管理工具: ManGe-Redis

ManGe Redis 工具 https://github.com/mangenotwork/mange_redis_manage 项目简介 ManGe redis 工具是一款redis操作&#xff0c;监控&#xff0c;预警&#xff0c;远程备份等功能集成的工具&#xff1b;该工具属于开发类辅助工具&#xff1b;该工具先选型为B/S架构&#xff1b…

redis命令工具

1&#xff1a;Redis 命令工具 Redis 提供了多个命令工具&#xff0c;这些命令工具的作用分别如下所示&#xff1a; redis-server &#xff1b; 用于启动redis的工具&#xff0c;redis-benchmark&#xff1b; 用于检测redis在本机的运行效率redis-check-aof&#xff1b; …