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

上传到资源里了

相关推荐
tao3556671 小时前
HTML-03-HTML 语义化标签
前端·html
pusheng20252 小时前
普晟传感2026年新春年会总结与分析
前端·javascript·html
Emma_Maria2 小时前
本地项目html和jquery,访问地址报跨域解决
前端·html·jquery
干前端3 小时前
Vue3 组件库工程化实战:BEM 命名规范与 useNamespace 深度解析
前端·css
笨蛋不要掉眼泪3 小时前
Redis主从复制:原理、配置与实战演示
前端·redis·bootstrap·html
RFCEO3 小时前
前端编程 课程十四、:CSS核心基础2:选择器优先级 + 伪类选择器(解决冲突+交互效果)
前端·css·交互·css选择器优先级判断规则详解·css important使用·css链接伪类lvha顺序·实现悬浮交互效果
浅念-4 小时前
C语言——自定义类型:结构体、联合体、枚举
c语言·开发语言·数据结构·c++·笔记·学习·html
小满zs4 小时前
Next.js第二十五章(CSS方案)
开发语言·javascript·css
红色的小鳄鱼5 小时前
Vue 监视属性 (watch) 超全解析:Vue2 Vue3
前端·javascript·css·vue.js·前端框架·html5
GISer_Jing5 小时前
原生HTML项目重构:Vue/React双框架实战
vue.js·人工智能·arcgis·重构·html