萌宠俱乐部

一、html代码

二、CSS代码

三、效果图

四、继续努力呀!!!


一、html代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>萌宠俱乐部</title>
    <link rel="stylesheet" href="./ini.css">
</head>
<body>
	<!--header begin-->
 	<div class="header">
 	    <div class="header_in">
 	        <img class="left" src="images/logo.png" />
 	        <img class="right" src="images/pic04.png" />
 	    </div>
 	</div>
 	<!--header end-->
 	<!--nav begin-->
 	<div class="nav">
 	    <ul>
 	        <li><a href="#">首页</a></li>
 	        <li><a href="#">萌宠领养</a></li>
 	        <li><a href="#">萌宠医院</a></li>
 	        <li><a href="#">萌宠食品</a></li>
 	        <li><a href="#">萌宠资讯</a></li>
 	        <li class="last"><a href="#">注册会员</a></li>
            
 	    </ul>
        <li class="lii"></li>
        
 	</div>
 	<!--nav end-->

	<!--banner begin-->
 	<div class="banner"></div>
 	<!--banner end-->



    <!--content begin-->
 	<div class="content">
 		<div class="top">会员注册</div>
 		<form action="#" method="post">
 			<table class="con">
 					<tr>
 	    	            <td class="left">昵称:</td>
 	    	            <td><input type="text"  class="right" /></td>
 	    	        </tr> 
 	    	        <tr>
 	    	            <td class="left">邮箱:</td>
 	    	            <td><input type="text" class="right" /></td>
 	    	        </tr>
 	    	        <tr>
 	    	            <td class="left">手机:</td>
 	    	            <td><input type="text" class="right" /></td>
 	    	        </tr>
 	    	        <tr>
 	    	            <td class="left">设置密码:</td>
 	    	            <td><input type="password" maxlength="8" class="right" /></td>
 	    	        </tr>
 	    	        <tr>
 	    	            <td class="left">确认密码:</td>
 	    	            <td><input type="password" maxlength="8" class="right" /></td>
 	    	        </tr>
 	    	         
 	    	</table>
 	    </form>
 	    <div class="top">宠物信息</div>
 	    <form action="#" method="post">
 			<table class="con">
 				<tr>
 	                <td class="left">所属种类:</td>
 	                <td>
 	                    <select>
 	                        <option>-请选择-</option>
 	                        <option>狗</option>
 	                        <option>猫</option>
 	                        <option>鼠</option>
 	                        <option>鸟</option>
 	                        <option>猪</option>
 	                    </select>
 	                </td>
 	            </tr>
 				<tr>
 	                <td class="left">性别:</td>
 	                <td>
 	                <label for="boy"><input type="radio" name="sex" id="boy" checked="checked"/>男
 	</label>&nbsp;&nbsp;&nbsp;&nbsp;
 	                <label for="girl"><input type="radio" name="sex" id="girl" />女</label>
 	                </td>
 	            </tr>
 	            
 	            <tr>
 	                <td class="left">年龄:</td>
 	                <td>
 	                    <select>
 	                        <option selected="selected">-请选择-</option>
 	                        <option>1岁</option>
 	                        <option>2岁</option>
 	                        <option>3岁</option>
 	                        <option>4岁</option>
 	                        <option>5岁</option>
 	                        <option>6岁</option>
 	                        <option>7岁</option>
 	                    </select>
 	                </td>
 	            </tr>
 	            <tr>
 	                <td class="left">喜爱的食物:</td>
 	                <td>
 	                    <label for="one"><input type="checkbox" id="one"/>面食</label>&nbsp;&nbsp;&nbsp;
 	                    <label for="two"><input type="checkbox" id="two"/>青草</label>&nbsp;&nbsp;&nbsp;
 	                    <label for="three"><input type="checkbox" id="three"/>肉类</label>&nbsp;&nbsp;&nbsp;
 	                    <label for="four"><input type="checkbox" id="four"/>杂粮</label>&nbsp;&nbsp;&nbsp;
 	                    <label for="five"><input type="checkbox" id="five"/>水果</label>&nbsp;&nbsp;&nbsp;
 	                    <label for="six"><input type="checkbox" id="six"/>蔬菜</label>
 	                </td>
 	            </tr>
 	            <tr>
 	                <td class="left">备注:</td>
 	                <td>
 	                    <textarea cols="60" rows="8">请填写备注内容。</textarea>
 	                </td>
 	            </tr>
 	            <tr>
 	                <td colspan="2"><input type="button" value="完成注册" class="btn" /></td>
 	            </tr>
 	    	         
 	    	</table>
 	    </form>
 	</div>
 	<!--content end-->
    <!--footer begin-->
 	<div class="footer">Copyright © 2006-2016 QIANNIANZHILIANcom, All rights reserved.<br />2001-2018,版权所有 萌宠俱乐部 85CP备13385453</div>
 	<!--footer end-->
</body>
</html>

二、CSS代码

*{margin:0;padding:0;border:0;list-style: none;}
body{font-family: "微软雅黑";font-size: 16px;}
a{text-decoration: none;color:#fff;}
.header{
    width:100%;
    height: 86px;
    background: url(../images/top.jpg) repeat-x;
}
.header_in{
    width:980px;
    margin:0 auto;
    position: relative;
}
.header_in .left{
    position: absolute;
    left:0;
    top:5px;
}
.header_in .right{
    position: absolute;
    right:78px;
    top:13px;
}
.nav{
    width:900px;
    height:74px;
    margin:0 auto;
    padding-left: 80px;
    background: url(../images/navbg.png) no-repeat;
} 
.nav ul li{
    list-style: none;
    float: left;
    line-height: 45px;
    width:100px;
    height:48px;
    text-align: center;
}
.nav ul li a{
    text-decoration: none;
    display: block;
    width:100px;
    height:48px;
}
.nav ul li:hover{background: url(../images/pic03.png) no-repeat;}
.nav ul li.last{background:url(../images/pic03.png) no-repeat;}
.nav ul li:hover~li{
    background: none;
}
.lii{
    float: left;
    padding-left: 190px;
    display: block;
    line-height: 45px;
    width:100px;
    height:480px;
    text-align: center;
    color: #fff;
}
.banner{
    width:980px;
    height:330px;
    margin:0 auto;
    background: url(../images/banner.jpg) no-repeat;
}
.content{
    width:980px;
    height:985px;
    margin:0 auto;
    background:#f5f5f5; 
}
.content .top{
    width:945px;
    height:26px;
    padding:5px 0 0 35px;
    color:#edf7d8;
    background: url(../images/pic01.jpg) no-repeat;
}
.content .con{padding:50px 0 45px 250px;}
td{ 
    height:50px; 
    color:#89b52a;
}
tr .left{
    width:120px; 
    text-align:right;
}
tr .right{
    width:310px; 
    height:28px; 
    padding-left: 10px;
    border:1px solid #89b52a;
}
input{vertical-align:middle;}
select{
    width:171px; 
    border:1px solid #89b52a; 
    color:#89b52a;
}
textarea{
    width:380px; 
    border:1px solid #89b52a; 
    resize:none; 
    font-size:12px; 
    color:#aaa; 
    padding:20px;
}
.btn{
    border: none;
    margin-top: 40px;
    width:500px; 
    height:40px;
    color:#edf7d8; 
    font-size: 20px;
    font-family: "微软雅黑";
    background:url(../images/pic02.png) center center no-repeat;
}
.footer{
    width:100%;
    height: 86px;
    padding-top: 45px;
    background: #ccc;
    text-align: center;
    color:#fff;
}

三、效果图,需要图片的联系我

四、继续努力呀!!!

  • 12
    点赞
  • 33
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

算法第一深情

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值