📂文章目录


二、📚网站介绍

📔网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。

📓网站程序方面:计划采用最新的网页编程语言HTML5+CSS3+JS程序语言完成网站的功能设计。并确保网站代码兼容目前市面上所有的主流浏览器,已达到打开后就能即时看到网站的效果。

📘网站素材方面:计划收集各大平台好看的图片素材,并精挑细选适合网页风格的图片,然后使用PS做出适合网页尺寸的图片。

📒网站文件方面:网站系统文件种类包含:html网页结构文件、css网页样式文件、js网页特效文件、images网页图片文件;

📙网页编辑方面:网页作品代码简单,可使用任意HTML编辑软件(如:​​Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++​​​ 等任意html编辑软件进行运行及修改编辑等操作)。
其中:
(1)📜html文件包含:其中index.html是首页、其他html为二级页面;
(2)📑 css文件包含:css全部页面样式,文字滚动, 图片放大等;
(3)📄 js文件包含:js实现动态轮播特效, 表单提交, 点击事件等等(个别网页中运用到js代码)。


三、🔗网站效果

▶️1.视频演示

N31JP- 茶文化-4页 HTML+CSS

🧩 2.图片演示

茶叶文化网站设计与实现 HTML+CSS学生网页设计作业源码_web前端


茶叶文化网站设计与实现 HTML+CSS学生网页设计作业源码_学生网页作业_02


茶叶文化网站设计与实现 HTML+CSS学生网页设计作业源码_web前端期末大作业_03


茶叶文化网站设计与实现 HTML+CSS学生网页设计作业源码_web前端_04


四、💒 网站代码

🧱HTML结构代码

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="css/css.css" />
<title>茗茶</title>
</head>

<body>

<div class="header">
<div class="wrapin">

<a href="index.html" class="logo">
<img src="images/logo.png" alt="">
</a>

<div class="nav">
<a href="index.html" class="hover">主页</a>
<a href="cla.html">茶叶分类</a>
<a href="health.html">健康饮茶</a>
<a href="reg.html">用户注册</a>
</div>

<div class="clear"></div>
</div>
</div>

<div class="wrapin">

<div class="hm_left">

<div class="hm_wel sd">
<div class="title">欢迎来到茗茶馆! </div>
<div class="tip">茗茶馆寻遍中华大地,精选各地好茶,目的就是为了能把最好的茶叶带给消费者,多年坚持、品质如赢得新老消费者的一致好评。品牌周年庆,特推出优惠活动,详询客服人员。</div>
</div>

<div class="hm_xs sd">
<div class="title">茗茶欣赏! </div>
<div class="xs_wp">
<div class="s_list">
<a href="#" class="xs_item">
<div class="photo">
<img src="images/pic-1.jpg" alt="">
</div>
<div class="name">绿茶</div>
</a>
<a href="#" class="xs_item">
<div class="photo">
<img src="images/pic-2.jpg" alt="">
</div>
<div class="name">红茶</div>
</a>
<a href="#" class="xs_item">
<div class="photo">
<img src="images/pic-3.jpg" alt="">
</div>
<div class="name">乌龙茶</div>
</a>
<a href="#" class="xs_item">
<div class="photo">
<img src="images/pic-4.jpg" alt="">
</div>
<div class="name">白茶</div>
</a>

<div class="clear"></div>
</div>
</div>
</div>

</div>

<div class="hm_right sd">

<div class="hr_item">
<div class="name"><a href="#">茶道欣赏</a></div>
<div class="date">2016年10月10日</div>
<div class="cnt">
茶道,就是品赏茶的美感之道。茶道亦被视为一种烹茶饮茶的生活艺术,- 种以茶为媒的生活礼仪,一种以茶修身的生活方式。它通过沏茶、赏茶、闻茶、饮茶、增进友谊,美心修德,学习礼法,领略传统美德,是很有益的一种和美仪式。喝茶能静心、静神,有助于陶冶情操、去除杂念。茶道精神是茶文化的核心。
</div>
<iframe height=300 width=510 src='http://player.youku.com/embed/XMjkxOTU5NTI3Ng==?client_id=4922b8adc1e60adb' frameborder=0 'allowfullscreen'></iframe>
<div class="tip">茶道视频欣赏</div>
<div class="yd">阅读(99)</div>
</div>

<div class="hr_item">
<div class="name"><a href="#">茗茶推荐一西湖龙井</a></div>
<div class="date">2016年10月10日</div>
<div class="cnt">
龙井是中华传统名茶,属于绿茶,位列中国茶品之首。龙井茶产于浙江杭州西湖带,由古代茶农创制于宋代,已有一千二百余年历史。龙井茶色泽翠绿,香气浓郁,甘醇爽口,形如雀舌,即有“色绿、香郁、味甘、形美”四绝的特点。西湖龙井茶清香馥郁,滋味更加鲜醇爽口。
</div>

<div class="yd">阅读(99)</div>
</div>

<div class="hr_item">
<div class="name"><a href="#">茗茶推荐一祁门红茶</a></div>
<div class="date">2016年10月10日</div>
<div class="cnt">
祁门红茶简称祁红,茶叶原料选用当地的中叶、中生种茶树“槠叶种”(又名祁门种)制作,是中国历史名茶,著名红茶精品。祁门红茶是红茶中的极品,享有盛营,是英国女王和王室的至爱饮品,高香美誉,香名远播,美称“群芳最”、“红茶皇后”。
</div>

<div class="yd">阅读(99)</div>
</div>

<div class="hr_item">
<div class="name"><a href="#">茗茶推荐一铁观音</a></div>
<div class="date">2016年10月10日</div>
<div class="cnt">
“铁观音”既是茶名,也是茶树品种名,铁观音茶介于绿茶和红茶之间,属于半发酵茶类,铁观音独具“观音韵”,清香雅韵,冲泡后有天然的兰花香,滋味纯浓,香气馥郁持久,有“七泡有余香之营”。
</div>

<div class="yd">阅读(99)</div>
</div>

<div class="hr_item">
<div class="name"><a href="#">茗茶推荐一白毫银针</a></div>
<div class="date">2016年10月10日</div>
<div class="cnt">
白毫银针,简称银针,又叫白毫,属白茶类,是白茶中的珍品,有中国十大名茶之一的称号。素有茶中“美女”、“茶王” 之美称。白毫银针由福建省的当地茶农创制于1889年,产地位于中国福建省的福鼎市和南平市政和县。其外观特征是:挺直似针,满披白毫,如银似雪。
</div>

<div class="yd">阅读(99)</div>
</div>

</div>


<div class="clear"></div>
</div>


<div class="footer">@2016名茶馆版权所有</div>

</body>
</html>

🏠CSS样式代码

/*通用类*/
*{
margin:0;
padding:0;
}
body{
min-width:960px;
margin:0 auto;
font-size:12px;
font-family:PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Source Han Sans CN,sans-serif;
background:#fff;
color:#333;
text-align:justify;
}
h1,h2,h3{
font-weight:500;
}
img{
border:none;
}
a{
cursor:pointer;
color:#333;
text-decoration:none;
outline:none;
}
a:hover{
color:#a78560;
}
ul{
list-style-type:none;
}
em{
font-style:normal;
}
.lt{
float:left;
}
.rt{
float:right;
}
input.sub,label{
border:none;
cursor:pointer;
}
input,textarea{
font-family:PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Source Han Sans CN,sans-serif;
outline:none;
}
table{
border-collapse:collapse;
}
table td,table th{
padding:0;
}
input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{
color:#ccc;
}
input::-moz-placeholder,textarea::-moz-placeholder{ /* Mozilla Firefox 19+ */
color:#ccc;
}
input:-moz-placeholder,textarea:-moz-placeholder{ /* Mozilla Firefox 4 to 18 */
color:#ccc;
}
input:-ms-input-placeholder,textarea:-ms-input-placeholder{ /* Internet Explorer 10-11 */
color:#ccc;
}
div.clear{
font: 0px Arial; line-height:0;
height:0;
overflow:hidden;
clear:both;
}
.line5{
font-size:1px;height:5px;width:100%;clear:both;
}
.line10{
font-size:1px;height:10px;width:100%;clear:both;
}
.line20{
font-size:1px;height:20px;width:100%;clear:both;
}
/*wrapin 主体容器宽度*/
.wrapin{
width:960px;
margin-left:auto;
margin-right:auto;
}

.header{
border-top:8px solid #a78560;
height: 140px;
}
.header .logo{
float: left;
margin:5px 0 0 0;
}
.nav{
float: left;
margin:78px 0 0 35px;
}
.nav a{
display: inline-block;
height: 30px;
line-height: 30px;
margin-right:30px;
font-weight: bold;
color:#a78560;
background:#eee;
border-radius:3px;
padding:0 14px;
box-shadow:3px 3px 0 #aaa;
}
.nav a:hover,.nav a.hover{
background:#fbeca1;
}
.hm_left{
float: left;
width: 350px;
}
.sd{
box-shadow:3px 3px 0 #aaa;
background:#eee url("../images/bg.gif");
border-radius:5px;
margin-bottom:10px;
padding:10px 20px 20px 20px;
}
.sd .title{
height: 50px;
line-height: 50px;
font-size:16px;
font-weight: bold;
color:#a78560;
}
.sd .tip{
line-height: 26px;
}
.xs_wp{
position: relative;
overflow: hidden;
}
.xs_wp .s_list{
width: 330px;
}
.xs_item{
width: 145px;
float: left;
margin:0 20px 0 0;
text-align: center;
line-height: 32px;
}
.xs_item .photo{
display: block;
width: 141px;
height:auto;
border:2px solid #fff;
}
.xs_item .photo img{
display: block;
width: 100%;
height:auto;
}
.hm_right{
width: 560px;
float: right;
}
.hr_item{
border-bottom:1px dashed #c8b99c;
padding-top:10px;
}
.hr_item .name{
height: 26px;
line-height: 26px;
font-weight: bold;
font-size:16px;
}
.hr_item .name a{
color:#a78560;
}
.hr_item .date{
height: 32px;
line-height: 32px;
color:#999;
}
.hr_item .cnt{
line-height: 26px;
text-indent:2em;
}
.hr_item .yd{
text-align:right;
line-height: 3;
color:#999;
}

.footer{
height: 46px;
line-height: 46px;
text-align: center;
background:#4f3115;
color:#fff;
}
.cla_item{
border-bottom:1px dashed #be5c56;
padding-bottom:20px;
}
.cla_item .name{
height: 42px;
line-height: 42px;
font-size:16px;
font-weight: bold;
color:#c25c56;
}
.cla_item ul{
padding-left:2em;
line-height: 20px;
}
.cla_item p{
line-height: 20px;
text-indent:2em;
}
.he_item{
border-bottom:1px dashed #4b7aa3;
padding-bottom:20px;
}
.he_item .name{
height: 42px;
line-height: 42px;
font-size:16px;
font-weight: bold;
color:#4b7aa3;
}
.he_item p{
line-height: 20px;
text-indent:2em;
}
.tc{
text-align: center;
}
.tip .red{
color:#f00;
}
.reg_fm{
width: 700px;
margin:10px auto 0 auto;
border:1px solid #6c6c6c;
position: relative;
border-radius:10px;
padding:0 0 30px 30px;
}
.reg_fm .tit{
font-weight: bold;
color:#4b7aa3;
font-size:16px;
position: absolute;
left: 20px;
top: -10px;
background:#eeeeed;
padding:0 5px;
}
.reg_in{
margin-top:30px;
}
.reg_in .ts{
width: 120px;
height: 20px;
line-height: 20px;
border:1px solid #a78560;
border-radius:3px;
background:#fff;
font-size:14px;
text-align:right;
padding-right:20px;
float: left;
}
.reg_in .ts em{
color:#f00;
}
.reg_in .text{
width: 230px;
height: 20px;
line-height: 20px;
float: left;
border:1px solid #a9a9a9;
margin-left:20px;
padding-left:20px;
}
.reg_in select{
width: 250px;
height: 22px;
line-height: 22px;
float: left;
border:1px solid #a9a9a9;
margin-left:20px;
padding-left:20px;
}
.reg_in label{
float: left;
line-height: 20px;
margin-left:20px;
}
.reg_in .ra{
position: relative;
top: 2px;
margin-right:3px;
}
.reg_in .tarea{
width: 460px;
height: 250px;
float: left;
border:1px solid #a9a9a9;
margin-left:20px;
background:#fff;
overflow-y:auto;
line-height: 1.6;
padding:20px;
}
.reg_ctrls{
text-align: center;
padding-top:15px;
}
.reg_ctrls .btn{
display: inline-block;
width: 60px;
height: 30px;
background:#a78560;
border:0;
border-radius:3px;
margin:0 50px;
color:#fff;
}

五、🎁更多源码

1.如果我的博客对你有帮助 ​​请 “👍点赞” “✍️评论” “💙收藏” ​​一键三连哦!