HTML 网页设计 简约风格 注册界面

成品如下

html

html 复制代码
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Science科幻注册界面</title>
        <link href="css/comm.css" rel="stylesheet" type="text/css">
        <link href="css/register.css" rel="stylesheet" type="text/css"/>
        <style>
        body{
            background-image:url("image/www.png");
            background-size:cover;
        }
    </style>
</head>
<body>
<div class="register-box">
    <h2>注册</h2>
    <form>
        <div class="form-group">
            <label for="username" class="form-label">用户名</label>
            <input type="text" id="username" class="form-input">
        </div>
        <div class="form-group">
            <label for="email" class="form-label">邮箱</label>
            <input type="email" id="email" class="form-input">
        </div>
        <div class="form-group">
            <label for="password" class="form-label">密码</label>
            <input type="password" id="password" class="form-input">
        </div>
        <div class="form-group">
            <label for="confirm_password" class="form-label">确认密码</label>
            <input type="password" id="confirm_password" class="form-input">
        </div>
        <button type="submit" class="submit-btn"><a class="submit-btn" href="index.html">注册</a></button>
    </form>
</div>
</body>
</html>

css

html 复制代码
.register-box {
    width: 380px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 100px;
    margin-left: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
h2 {
    position: relative;
    left: 150px;
}
.submit-btn:hover, .submit-btn:active {
	    color: red;
		text-decoration: none;
	}
.submit-btn:link, .submit-btn:visited {
	    text-decoration: none;
	}

背景图片

相关推荐
前端之虎陈随易3 小时前
编程语言级别的Skill市场,AI Agent 的未来形态
前端·vue.js·人工智能·typescript·node.js
一路向北he3 小时前
字节钢铁军团--“提供情境,而非控制”
java·开发语言·前端
kyriewen3 小时前
豆包和千问同时关了智能体,我用它们搭的 3 个自动化全废了——迁移方案整理
前端·javascript·ai编程
前端一小卒3 小时前
我用 TypeScript 从零手写了一个 Claude Code,然后发现它的核心只有 30 行
前端·agent
AI行业学习4 小时前
Notepad++ 官方下载 + 完整安装 + 全套优化配置(2026最新)
开发语言·人工智能·python·前端框架·html·notepad++
大圣编程5 小时前
Python中continue语句的用法是什么?
开发语言·前端·python
yuhaiqiang5 小时前
随手 vibecoding 的浏览器插件已经 6000 多次下载,聊聊他的产品设计
前端·后端·面试
之歆5 小时前
Vue商品详情与放大镜组件
前端·javascript·vue.js
再吃一根胡萝卜6 小时前
如何把小米 MiMo 接入 CodeBuddy,打造私有 Agent
前端
负责的蛋挞7 小时前
异步HttpModule的实现方式
java·服务器·前端