QQ注册页仿写

本次代码来仿写QQ注册页,代码优化方式很多,小编也是新手,有能优化的地方望大佬们见谅
下面是代码部分:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="./fonts/iconfont.css"/>
		/*这里引入的是阿里图标*/
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
				text-decoration: none;
			}
			.all{
				width:100%;
				height:820px;
				background-color: black;
				position: relative;
			}
			.left{
				position: fixed;
				width:480px;
				height:100%;
				left: 0;
				top: 0;
				bottom: 0;
				
			}
			.left img:nth-child(1){
				width: 480px;
			}
			.left .toplogo{
				display: inline-block;
				width: 102px;
				height: 43px;
				position: absolute;
				top:18px ;
				left: 30px;
				
			}
			.left .toplogo .qqlogo{
				position: absolute;
				width: 36px;
				height: 43px;
				top: 0;
				left: 0;
			}
			.toplogo .qqlogo:hover{
				
			}
			.toplogo>span{
			    font-size: 35px;
				margin-left: 43px;
				color: #000000;
				
			}
			.right{
				width:869px;
				position: absolute;
				right: 0;
				top: 0;
				bottom: 0;
				float: right;
				background-color:white;
			}
			.r-top {
				height: 100px;
				width: 100%;
				position: absolute;
				top: 10px;
			}
			
			.right .top-logo{
				width: 100px;
				height: 50px;
				
				position: absolute;
				top:10px;
				right:181px;
				border-radius: 5%;
			} 
			.top-logo .top-logoa{
				display: block;
				
			}
			.right .right-center input{
				height: 50px;
				font-size: 20px;
				padding: 0 20px;
			}
			.top-logo img{
				width: 23px;
				height: 34px;
				position: absolute;
				left: -10px;
			}
			.top-logo span{
				display: inline-block;
				color:white;
				margin-top: 10px;
				background-color:rgb(255, 70, 64);
				padding: 2px 10px 2px 20px;
				border-radius: 7px;
			}
			.r-top select{
				position: absolute;
				right: 82px;
				top: 12px;
				width: 94px;
				height: 40px;
				border: none;
				font-size: 16px;
				color: #999999;
				outline: none;
				
			}
			.r-top option{
				outline: none;
			}
			.rtop-right{
				position: absolute;
				right: 13px;
				top: 21px;
				font-size: 14px;
				
			}
			.rtop-right a{
				color: #999999;
			}
			
			.right-center{
				
				width: 300px;
				margin-left: 200px;
				margin-top: 120px;
				margin-bottom: 10px;
			}
			.right-center p:nth-child(1){
				font-size: 31px;
				margin-bottom: 10px;
			}
			.right-center p:nth-child(2){
				font-size: 25px;
				color: rgb(51, 51, 51);
			}
			.right-center .rc-top input{
				width:438px;
				margin-top: 20px;
				outline: none;
			}
			.rc-center{
				width:480px;
				margin-top: 20px;
			}
			.rc-center select{
				width: 154px;
				padding: 0 20px;
				font-size: 20px;
				height: 50px;
			}
			.rc-center input{	
				width: 261px;
				margin-left: 16px;
				outline: none;
				
			}
			.rc-bottom{
				margin-top: 10px;
				width:480px ;
			}
			.rc-bottom input{
				width: 110px;
			}
			.rc-bottom input:nth-child(2){
				width: 305px;
				margin-left: 15px;
				background-color: rgb(0, 138, 255);
				border: none;
				/* outline: none; */
				border-radius: 4px;
				color:white;
				height: 50px;
			}
			.bbtom {
				margin-top:10px ;
				width: 480px;
			}
			.bbtom input{
				width: 100%;
				background-color: rgb(0, 138, 255);
				border: none;
				/* outline: none; */
				border-radius: 4px;
				color:white;
				height: 50px;
			}
			.check{
				margin-top: 10px;
				
			}
			.check select,input{
				vertical-align: middle;
			}
			.check select{
				border: none;
				outline:none;
				color: rgb(178, 178, 200);
			}
			.check .blue{
				color: rgb(0, 160, 255);
			}
			.finall{
				width: 100%;
				text-align: center;
				margin-top: 70px;
				color: rgb(187, 187, 202);
			}
			.links{
				width:246px;
				height:95px;
				background-color: white;
				box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
				position: absolute;
				top:34px;
				right:12px;
				display: none;
			}
			.top-logo:hover .links{
				display:block;
			}
			.top-logoa:hover{
				cursor: pointer;
			}
			.links input:nth-child(1){
				width: 200px;
				height: 35px;
				border: none;
				outline: none;
				font-size: 16px;
				line-height:25px !important;
				color: rgb(183, 187, 197);
			}
			.linktop-right{
				width: 40px;
				height:35px;
				float: right;
				text-align: center;
				border-left: 1px solid whitesmoke;
			}
			.linktop-right:hover{
				background-color:rgb(255, 74, 66);
				color:white;
			}
			.links .iconfont{
				font-size: 25px !important;
				line-height: 35px;
			}
			.links form{
				height: 35px !important;
				border-top-right-radius: 5px;
				border-top-left-radius: 2px;
				border-bottom: 1px solid whitesmoke;
			}
			.links-bottom{
				width: 100%;
				text-align: center;
				height: 60px;
				line-height: 60px;
				
			}
			.links-bottom a{
				color: rgb(0, 164, 255);
				margin-left: 5px;
				font-size: 14px;
			}
			
		</style>
	</head>
	<body>
		<div class="all">
			<div class="left">
				<img src="./img/01-1.jpg" >
				<a href="" class="toplogo">
					<img src="img/logo.png" class="qqlogo" >
					<span>QQ</span>
				</a>
			</div>
			<div class="right">
				<div class="r-top">
					<div class="top-logo">
						<a  class="top-logoa">
							<img src="img/logo3.png" >
							<span >QQ靓号</span>
							<div class="links">
								<form style="width: 100%; height: 40px; margin-top: 2px;">
									<input type="text" name="" id="" placeholder="输入QQ靓号,如1992,520" />
									<div class="linktop-right">
										<label for="submit"><i class="iconfont icon-RectangleCopy"></i></label>
										<input type="submit" name="" id="submit" style="display: none;"/>
									</div>
								</form>
								<div class="links-bottom">
									<a href="">生日</a>
									<a href="">星座</a>
									<a href="">爱情</a>
									<a href="">手机</a>
								</div>
							</div>
						</a>
					</div>
				<select name="简体中文">
					<option value ="">简体中文</option>
					<option value="">繁体中文</option>
					<option value ="">English</option>
				</select>
				<div class="rtop-right">
					<a href="">意见反馈</a>
				</div>
				</div>
			<div class="right-center">
				<p>欢迎注册QQ</p>
				<p>每一天,乐在沟通。</p>
				<form action="" method="">
					<div class="rc-top">
						<input type="text" name="" placeholder="昵称" />
						<input type="password" name="" placeholder="密码" />
					</div>
					<div class="rc-center">
						<select name="">
							<option value="">+86</option>
							<option value ="">中国+86</option>
						</select>
						<input type="text" placeholder="手机号码" name="" id="" value="" />
					</div>
					<div class="rc-bottom">
						<input type="text" name=""placeholder="短信验证码" />
						<input type="button" value="发送短信验证" name="" id="" placeholder=""/>
					</div>
					<div class="bbtom">
						<input type="submit" name="" id="" value="立即注册" />
					</div>
					<div class="check">
						<input type="checkbox" name="" id="" value="" />
						<select name="">
							<option value="">我已阅读并同意相关服务条款和隐私政策</option>
							<option class="blue" value ="">《QQ号码规则》</option>
							<option class="blue"  value ="">《隐私政策》</option>
							<option class="blue"  value ="">《QQ空间服务协议》</option>
						</select>
					</div>
				</form>
			</div>
			<div class="finall">
				Copyright © 1998-2021Tencent All Rights Reserved
			</div>
			</div>
		</div>
	</body>
</html>

图标是下面图片中的搜索框,你们可以自己下载然后修改对应的代码
在这里插入图片描述
图中的企鹅和背景图需要自己下载,修改html的代码才能完美实现
在这里插入图片描述
欢迎大家借鉴

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值