当前位置: 首页 > news >正文

一个简单的注册页面

这是我自己学习做的一个注册页面,较简陋。

图片自行添加。

显示效果图:

html部分:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="官网">
    <link rel="stylesheet" href="./css/style.css">
    <link rel="stylesheet" href="./css/zhuce.css">
    <title>工作室网站</title>
</head>
<body>

        <div class="header">
        <div class="rowl">
        <h1>
            <img src="./img/01.jpg" alt="">
            <span>2018</span>
        </h1>
       </div>
       <form class="search"  method="get" >
        <input class="sinput" type="text" name="s" /> 
        <input class="sbtn" type="submit" value=""/>
        
    </form>
    <button type="button" class="dlq" ><a href="denglu.html" target="_self">登录</a></button>

</div>
   

</div>

    <div class="nav">
        <div class="buttom">点击展开菜单</div>
       <ul id="nav">
           <li><a href="index.html" target="_self">首页</a></li>
           <li><a href="">新闻与媒体</a>
                <ul>
                <li><a href="gonggong.html" target="_self">公共信息</a></li>
                <li><a href="ziyuan.html" target="_self">资源下载</a></li>
                </ul>
           </li>
           <li><a href="">师资队伍</a>
                <ul>
                <li><a href="renyuan.html" target="_self">人员介绍</a></li>
                </ul>
            </li>
           <li><a href="">联系我们</a>
                <ul>
                <li><a href="lianxi.html" target="_self">办事咨询</a></li>
                </ul>
           </li>
           </ul>
    </div>
    
    <div class="back" >    
            <div class="bback">
                   <div class="zhuce">
                    <form class="m-t" role="form" action="index.html" method="post">
                            
                                   <div class="formgroup"> 姓名:<input type="text" class="name"  required=""></div>
                                   <div class="formgroup">     职位:<input type="text" class="posi"  required=""></div>
                                   <div class="formgroup"> 用户名:<input type="text" class="name"  required=""></div>
                                   <div class="formgroup"> 密码:<input type="password" class="mima"  required=""></div>       
                                   <div class="formgroup">    男:<input type="radio" class="sex"  required="">女:<input type="radio" class="sex"  required=""></div>
                                   <div class="formgroup">   key(判断身份):<input type="text" class="key"  required=""></div>
                                   <div class="formgroup">    联系方式:<input type="text" class="lianxi"  required=""></div>
                                   <div class="formgroup">    自我介绍:<textarea rows="5" cols="20"></textarea></div>                                  
                                   <div class="formgroup2">    上传照片:<input type="file" class="czp"></button></div>
                                   <div class="formgroup3">      <button type="submit" class="zc">注册</button></div>

                        </form>
                    </div>
                    
                          
            </div>
     </div>
     <div class="onfooter">
            <ul>
                <li>新闻媒体</li>
                <li>师资队伍</li>
                <li>联系我们</li>
            </ul>
        </div>
        <div class="footer">
            <div class="ffooter">
            <ul>
                <li><a href="gonggong.html" target="_self">公共信息</a>
                    <ul>
                        <li><a href="ziyuan.html" target="_self">资源下载</a></li>
                        </ul>
                </li>
                <li><a href="renyuan.html" target="_self">人员介绍</a></li>
                <li><a href="lianxi.html" target="_self">办事咨询</a></li>
            </ul>
        </div>
        </div>
    </body>
    </html>

css部分:

以前套用主页面的css代码懒得删除了,直接套用在这个注册页面。

@media screen and (min-width:768px){
    html{
        font-size:16px;
    }
    body{
        margin: 0;
        padding: 0;
    }
    .buttom{
        display: none;
    }
    .header{
        background-color: rgb(98,99,147);
        height: 8rem;
        line-height: 6.5rem;
        overflow: hidden;
    }
    .search{position:absolute;right:10em;top:2em;}
    .dlq{position:absolute;right:100px;top:34px;}
    .dlq a{text-decoration: none;}
    .header span, .header img{
        width:90px;
        height:90px;
        vertical-align: middle;
    }
    .header span{
        font-family: '楷体';
        color:white;
        font-size:2.5rem; 
    }
    .header .rowl{
        width: 60%;
        padding-left: 1rem;
        text-align: center;
    }
    .nav{
        height: 3rem;
        background-color: white;
    }
    .nav ul{
        margin: 0;
        padding: 0;
        text-align: center;
    }
    .nav ul li{
        display: inline-block;
        margin-left: 0.5rem;
        width: 12rem;
        position: relative;
    }
    .nav ul li:nth-child(1){
        margin-left:0;
    }
    .nav ul li a{
        font-size: 1rem;
        font-weight: bolder;
        color: black;
        text-decoration:none;
        line-height: 3rem;
    }
    .nav ul li:hover{
        background: #47A3Da;
        cursor:pointer;
    }
    .nav ul li:hover a{
        color: black;
    }
    .nav ul li>ul{
        position: absolute;
        padding: 0;
        background-color: #fff;
        opacity: 0;
    }
    .nav ul li>ul>li{
        margin: 0;
        padding: 0;
    }
    .nav ul li:hover ul{
        opacity:1;
        z-index: 3;
        
    }
    .nav ul li ul>li:hover{
        background: #3B80B7;
        transform: scale(1.2);
        transition:0.5s;
        border-radius:1rem;
    }
    
    
    
    .demo{
        width: 300px;
    }
    .search:hover {
        -webkit-box-shadow:0 0 3px #999;
        -moz-box-shadow:0 0 3px #999;
    }
    .search .sinput {
        float:left;
        width:150px;
        height:24px;
        line-height:24px;
        padding:4px 5px;
        border:#A7A7A7 1px solid;
        background:white;
        color:#888;
        font-size:12px;
        -webkit-transition:.3s;
        -moz-transition:.3s;
        outline: none;
        border-radius:8px;
    }
    .search .sinput:focus {
        width:220px;
    }
    .search .sbtn {
        cursor:pointer;
        height:34px;
        font-size:12px;
        padding:0 12px;
        width:60px;
        margin-left:-1px;
        display:inline-block;
        float:left;
        border:#A7A7A7 1px ;
        background: url('../img/06.png') center no-repeat;
        background-size: 75%;
    }
    #sou{
       width:41px;
       height: 41px;
       position: absolute;
       right:8px;
       top:0px;
       cursor:pointer;
      
    }
    /* .search .sbtn:hover {
        background:#fff;
    } */
    .banner{
        position: relative;
        width:70%;
        margin: 0px auto;
    }
    .mySlide{
        position:absolute;
    }
    .fade img{height: 530px;}
    .fade{
        animation-name: fade;
        animation-duration: 2s;
    }
    @keyframes fade{
        from {opacity: .4} 
        to {opacity: 1}
    }
    .buttomer{
        text-align: center;
        position: absolute;
        right:5rem;
        bottom: 2rem;
    }
    .dot {
        cursor:pointer;
        height: 13px;
        width: 13px;
        margin: 0 2px;
        background-color: #bbb;
        /* border-radius: 50%; */
        display: inline-block;
        transition: 0.6s ease;
        border-radius: 50%;
      }
    .active{
        background: rgb(98,99,147);
    }
    .onfooter{
        width:70%;
        background:rgb(238,238,238);
        margin:0 auto;
    }
    .onfooter ul{
        height:3em;
        margin: 0;
        padding: 0;
        text-align: center;
        line-height: 3em;
    
    }
    
    .onfooter ul li{
        list-style:none;
        display: inline-block;
        margin-left: 0.5rem;
        width: 12rem;
        font-weight:bold;
    }
    .footer { 
          width:100%;
          background: rgb(98,99,147);height: 8em;
        }
    .footer ul{
        height:2em;
        margin: 0;
        padding: 0;
        text-align: center;
        line-height: 2em;
    }
    .footer ul li{
        list-style:none;
        display: inline-block;
        margin-left: 0.5rem;
        width:12em;
        font-weight:bold;
        position: relative;;
    }
    .onfooter ul li:nth-child(1){
        margin-left:0;
    }
    .footer ul li:nth-child(1){
        margin-left:0;
    }
    .footer ul li>ul{
        position: absolute;
        padding: 0;
    }
    .footer ul li>ul>li{
        margin: 0;
        padding: 0;
    }
    
    
    
    
    
    .footer ul li a{text-decoration: none;
        color:rgb(209,209,209);
    }
     .footer ul li a:hover{color: red;
    
     }
    
    }
.back{
    background: url('../img/l1.png') no-repeat;
    background-size: cover;
    width: 70%;
    height: 600px;
    position: relative;
    margin:0 auto;
    
}
.bback{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 600px;
    line-height: 50px;
    text-align: center;
    background:rgba(244,245,249,0.7);
}
.zhuce {
    text-align:left;border: 2px solid gray;border-radius: 6px;
   
    width:600px;
    margin: 100px auto 0 auto;
    position: relative;
      
}
.formgroup2{position: absolute;right:20px;top:10px;}
.zc{
    background: rgb(98,99,147);
width:200px;
border-radius: 6px;
color:white;
position: absolute;bottom: 10px;right:120px;
}

 

转载于:https://www.cnblogs.com/ceneasy/p/9656630.html

相关文章:

  • 主进程和子进程_Python 简明教程 26,Python 多进程编程
  • golang文件下载断点续传(下载客户端)
  • 天体运行轨迹_按彗星轨迹,太阳系中存在第二平面,有可能是彗星的“第二家园”...
  • 一个网页打开的全过程
  • 环境图配置不存在pbr_[翻译]你也可以制作的PBR!
  • 单引号和双引号的区别
  • 前端缓动画为什么不能有小数_前端兼容性的一些问题
  • luogu4187 [USACO18JAN]Stamp Painting (dp)
  • jsencrypt vue使用_在VUE中使用RSA加密解密加签解签__Vue.js
  • Learning-Python【6】:Python数据类型(2)—— 列表、元组
  • 如何计算虚拟化vcpu_【虚拟化实战】VM设计之一vCPU
  • 小希的迷宫(并查集判环)
  • 标志寄存器df_标志寄存器的详细解释
  • 分布式框架
  • c++ vector 头文件_Vector:C++界热销的Pro版数组
  • Django 博客开发教程 8 - 博客文章详情页
  • gops —— Go 程序诊断分析工具
  • iOS仿今日头条、壁纸应用、筛选分类、三方微博、颜色填充等源码
  • java8 Stream Pipelines 浅析
  • React-Native - 收藏集 - 掘金
  • React系列之 Redux 架构模式
  • Sass Day-01
  • Spring技术内幕笔记(2):Spring MVC 与 Web
  • Vue实战(四)登录/注册页的实现
  • Vue--数据传输
  • 得到一个数组中任意X个元素的所有组合 即C(n,m)
  • 电商搜索引擎的架构设计和性能优化
  • 好的网址,关于.net 4.0 ,vs 2010
  • 记一次和乔布斯合作最难忘的经历
  • 小程序、APP Store 需要的 SSL 证书是个什么东西?
  • 一份游戏开发学习路线
  • 一个普通的 5 年iOS开发者的自我总结,以及5年开发经历和感想!
  • 赢得Docker挑战最佳实践
  • 怎么把视频里的音乐提取出来
  • hi-nginx-1.3.4编译安装
  • zabbix3.2监控linux磁盘IO
  • 新海诚画集[秒速5センチメートル:樱花抄·春]
  • ​ubuntu下安装kvm虚拟机
  • ​比特币大跌的 2 个原因
  • ​云纳万物 · 数皆有言|2021 七牛云战略发布会启幕,邀您赴约
  • #我与Java虚拟机的故事#连载13:有这本书就够了
  • (3)STL算法之搜索
  • (C++17) optional的使用
  • (Matalb时序预测)WOA-BP鲸鱼算法优化BP神经网络的多维时序回归预测
  • (博弈 sg入门)kiki's game -- hdu -- 2147
  • (论文阅读11/100)Fast R-CNN
  • (论文阅读笔记)Network planning with deep reinforcement learning
  • (万字长文)Spring的核心知识尽揽其中
  • (原創) 如何讓IE7按第二次Ctrl + Tab時,回到原來的索引標籤? (Web) (IE) (OS) (Windows)...
  • *1 计算机基础和操作系统基础及几大协议
  • .htaccess配置常用技巧
  • .md即markdown文件的基本常用编写语法
  • .net Application的目录
  • .NET CF命令行调试器MDbg入门(一)
  • .net core webapi 部署iis_一键部署VS插件:让.NET开发者更幸福