HTML网页设计 科幻风格登录界面

成品如下

HTML代码

html 复制代码
<!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>Science科幻登陆页面</title>
	<link href="css/login.css" type="text/css" rel="stylesheet" />
	<style>
		body{
					        
							background-image:url("image/kehuan3.avif");
							background-size:cover;
					    }
	</style>
</head>
<body>
	<marquee scrollamount="30" direction="right" behavior="alternate ><span class="ddd2">🔥🚀🔥🚀🔥🚀🔥🚀</span></marquee>
    <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"><a href="index.html" class="ddd">登录</a></button>
        </div>
    </div>
</body>
</html>

CSS代码

html 复制代码
.login{
	    text-align: center;
	    margin: 0 auto;
	    width: 600px;
	    height: 520px;
	    background-color: rgba(67, 76, 99, 0.2);
	    border-radius: 25px;
	    box-shadow: 5px 2px 35px -7px #B6BBC4	;
	}
	.login h2{
	    margin-top: 40px;
	    color: skyblue;
		font-size: 40px;
		font:黑体;
	    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: black;
	    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;
	}
	.ddd:hover, .ddd:active {
	    color: red;
		text-decoration: none;
	}
	.ddd2{
		font:1.875rem,large;
		color: green
	}
	.ddd:link, .ddd:visited {
	    text-decoration: none;
		color: rgb(100, 183, 255);
	}

背景avif

上传到资源里了

相关推荐
晓得迷路了1 小时前
栗子前端技术周刊第 112 期 - Rspack 1.7、2025 JS 新星榜单、HTML 状态调查...
前端·javascript·html
jinmo_C++1 小时前
从零开始学前端 · HTML 基础篇(一):认识 HTML 与页面结构
前端·html·状态模式
winfredzhang2 小时前
从零构建:基于 Node.js 的全栈视频资料管理系统开发实录
css·node.js·html·音视频·js·收藏,搜索,缩略图
松涛和鸣16 小时前
49、智能电源箱项目技术栈解析
服务器·c语言·开发语言·http·html·php
加个鸡腿儿20 小时前
经验分享2:SSR 项目中响应式组件的闪动陷阱与修复实践
前端·css·架构
华仔啊20 小时前
写 CSS 用 px?这 3 个单位能让页面自动适配屏幕
前端·css
菩提小狗21 小时前
Sqli-Labs Less-3 靶场完整解题流程解析-豆包生成
前端·css·less
智航GIS21 小时前
10.5 PyQuery:jQuery 风格的 Python HTML 解析库
python·html·jquery
Pilot-HJQ1 天前
固定 Element UI 表格表头的方法(超简单)
vue.js·学习·css3·html5
web小白成长日记1 天前
CSS 作用域隔离实战:React、Vue 与 Styled Components 的三种范式
前端·css·vue.js·react.js