zoukankan      html  css  js  c++  java
  • HTML网页登录模板制作

    HTML网页登录模板制作

    html代码

    <!doctype html>
    <html lang="en">
    <head>
    	<meta charset="UTF-8">
    	<title>用户注册页面</title>
    	<link rel="stylesheet" href="css/base.css">
    	<link rel="stylesheet" href="css/register.css">
    	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    </head>
    <body>
    
    	<div id="user-wrapper">
    		<div class="header"></div>
    		<form action="post">
    			<div class="for-con">
    				<div class="first">
    					<input type="text" name="tel" placeholder="请输入联系方式">
    					<span>获取验证码</span>
    				</div>
    				<div class="content">
    					<input type="text" name="num" placeholder="请输入验证码">
    				</div>
    			</div>
    			<div class="after">
    				<input type="submit" name="user" value="用户验证">
    			</div>
    		</form>
    	</div>
    </body>
    </html>
    
    

    css样式

    *{
    	margin: 0px;
    	padding: 0px;
    }
    body{
    	background-color: #000;
    	font-family: "微软雅黑";
    }
    #user-wrapper{
    	 100%;
    	height: 100%;
    	max- 800px;
    	margin: 0 auto;
    	background-color: #f7f7f7;
    	letter-spacing: 1px;
    }
    #user-wrapper .header{
    	 100%;
    	height: 100px;
    }
    
    #user-wrapper form .for-con{
    	background-color: #fff;
    	position: relative;
    	border-top: 1px solid #ccc;
    }
    #user-wrapper form .for-con:after{
    	content:"";
    	display: table;
    	clear: both;
    }
    #user-wrapper form .for-con.first{
    	position: relative;
    	border: none;
    }
    #user-wrapper form .for-con .first input{
    	 100%;
    	line-height: 40px;
    	font-weight: normal;
    	border: 0;
    	border-bottom: 1px solid #ccc;
    	padding-left: 10px;
    }
    #user-wrapper form .for-con .first span{
    	position: absolute;
    	top: 8px;
    	right: 10px;
    	border-radius: 3px;
    	padding: 3px 10px;
    	color: #fff;
    	font-size: 16px;
    	font-weight: normal;
    	background-color: #00bfff;
    }
    #user-wrapper form .for-con .content input{
    	 100%;
    	line-height: 40px;
    	font-weight: normal;
    	border: 0;
    	padding-left: 10px;
    	border-bottom: 1px solid #ccc;
    }
    .after{
    	 80%;
    	margin: 0 auto;
    	background-color: #00bfff;
    	border-radius: 3%;
    	padding: 10px 0px;
    	margin-top: 20px;
    	margin-bottom: 20px;
    }
    .after a{
    	text-decoration: none;
    	color: #fff;
    	padding: 2% auto;
    	text-align: center;
    	font-weight: normal;
    }
    .after input{
    	 100%;
    	text-decoration: none;
    	color: #333;
    	padding: 2% auto;
    	font-weight: normal;
    	background: linear-gradient(to bottom, #00bfff, #00bfff);
    	-webkit-background: linear-gradient(to bottom, #00bfff, #00bfff);
    	color: #fff;
    	border-radius: 4px;
    	border: 0;
    	font-size: 1.18em;
    	cursor: pointer;
    }
    
    
  • 相关阅读:
    python爬虫简单实现,并在java中调用python脚本,将数据保存在json文件中
    封闭类
    对象的复制和数据类成员的解构
    数据类
    Git 标签
    Git 查看提交历史
    [精]Oracle APEX 5.0 入门教程(一) Form表单
    UISearchbar去除背景色的方法,适合iOS5/6/7/8.0beta
    哈希表——线性探測法、链地址法、查找成功、查找不成功的平均长度
    《Android源代码设计模式解析与实战》读书笔记(二十一)
  • 原文地址:https://www.cnblogs.com/xiuxiu123/p/5220490.html
Copyright © 2011-2022 走看看