首页 分享 萌宠俱乐部html+css代码分享

萌宠俱乐部html+css代码分享

来源:萌宠菠菠乐园 时间:2024-10-09 10:41

dushuaaa 于 2024-05-15 18:05:27 发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

 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="css/css.css">

</head>

<body>

<div class="header">

<div class="header_in">

<img class="left" src="img/logo.png" />

<img class="right" src="img/pic04.png" />

</div>

</div>

<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>

<div class="banner"></div>

<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>

<div class="footer">Copyright © 2006-2016 QIANNIANZHILIANcom, All rights reserved.<br />2001-2018,版权所有 萌宠俱乐部 85CP备13385453</div>

</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(../img/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(../img/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(../img/pic03.png) no-repeat;}

.nav ul li.last{background:url(../img/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(../img/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(../img/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(../img/pic02.png) center center no-repeat;

}

.footer{

width:100%;

height: 86px;

padding-top: 45px;

background: #ccc;

text-align: center;

color:#fff;

}

效果图 

相关知识

萌宠俱乐部html+css代码分享
Web课程设计:宠物网站设计——萌宠有家(5页) HTML+CSS 简单DIV布局宠物介绍网页模板代码
武汉市江夏区萌宠宠物俱乐部
大学生网页设计制作作业实例代码 (全网最全,建议收藏) HTML+CSS+JS
宠物俱乐部网页模板网页UI素材免费下载(图片编号:3580320)
永胜县永北镇萌宝小宠俱乐部宠物店
巴中市巴州区萌宠宠物俱乐部
上海萌宠俱乐部怎么样
探索DiK幼犬训练师俱乐部:专业训练,萌宠成长新篇章
爱宠(单县)宠物俱乐部

网址: 萌宠俱乐部html+css代码分享 https://www.mcbbbk.com/newsview354433.html

所属分类:萌宠日常
上一篇: 宠物托运app排行榜前十名
下一篇: 「零宠物俱乐部招聘」

推荐分享