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

.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;
	}

背景图片
在这里插入图片描述

相关推荐

  1. 15-RESTful风格-简化注解

    2023-12-29 06:36:06       51 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-29 06:36:06       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-29 06:36:06       106 阅读
  3. 在Django里面运行非项目文件

    2023-12-29 06:36:06       87 阅读
  4. Python语言-面向对象

    2023-12-29 06:36:06       96 阅读

热门阅读

  1. docker基础

    2023-12-29 06:36:06       49 阅读
  2. C语言 for 循环的所有应用

    2023-12-29 06:36:06       52 阅读
  3. SpringBoot 集成 Kafka消息中间件,Docker安装Kafka环境

    2023-12-29 06:36:06       52 阅读
  4. How to Replace One Character with Another in Bash Script

    2023-12-29 06:36:06       58 阅读
  5. kafka相关面试题及答案

    2023-12-29 06:36:06       37 阅读
  6. 常用的测试工具有10类

    2023-12-29 06:36:06       48 阅读
  7. 58.0/PhotoShop 图层的应用(详细版)

    2023-12-29 06:36:06       58 阅读
  8. 前端----css 的引入方式

    2023-12-29 06:36:06       57 阅读
  9. android 13 调整导航栏返回键和home键间距

    2023-12-29 06:36:06       62 阅读
  10. 【云原生】Kubernetes Operator模式

    2023-12-29 06:36:06       56 阅读
  11. Elasticsearch相关面试题及答案

    2023-12-29 06:36:06       49 阅读
  12. k8s学习 — (实践)第四章 资源调度

    2023-12-29 06:36:06       44 阅读