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

上传到资源里了

相关推荐
小彭努力中10 小时前
194.Vue3 + OpenLayers 实战:动态位置 + 高度 + 角度,模拟卫星地面覆盖范围
前端·css·vue.js·openlayers·animate
cyforkk15 小时前
Spring Boot 3 集成 Swagger 踩坑实录:解决 doc.html 404 与 Unauthorized 拦截
spring boot·后端·html
ZHOUPUYU15 小时前
PHP与WebSocket实时通信的原理到生产级应用
开发语言·html·php
uimaker15 小时前
uimaker响应式jQuery Easyui+Bootstrap多配色主题设计
前端框架·bootstrap·html·jquery·easyui·后台模版
Luna-player16 小时前
Vue 组件,用来实现一个响应式图标网格布局,核心是用 CSS 实现固定宽高比的正方形容器,并在里面放置图片和文字。
前端·css·vue.js
Predestination王瀞潞18 小时前
6.5.2 软件->W3C HTML5、CSS3标准(W3C Recommendation):HTML(HyperText Markup Language)
html·css3·html5
Greg_Zhong18 小时前
Css知识之伪类和伪元素
前端·css
#麻辣小龙虾#19 小时前
html浏览器自动播放视频策略
前端·html·音视频
这儿有一堆花19 小时前
从技术标准到营销概念:深度解析 HTML5 与 H5 的演变与区别
前端·html·html5
余瑜鱼鱼鱼19 小时前
css常用功能总结(三)(Chrome 调试工具 -- 查看 CSS 属性)
前端·css·chrome