前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >基于Web的美食分享平台的设计与实现——HTML+CSS+JavaScript水果介绍网页设计(橙子之家)

基于Web的美食分享平台的设计与实现——HTML+CSS+JavaScript水果介绍网页设计(橙子之家)

原创
作者头像
IT司马青衫
发布2022-08-17 10:01:33
6930
发布2022-08-17 10:01:33
举报
文章被收录于专栏:html5期末大作业html5期末大作业

👨‍🎓静态网站的编写主要是用HTML DIV+CSS JS等来完成页面的排版设计👩‍🎓,常用的网页设计软件有Dreamweaver、EditPlus、HBuilderX、VScode 、Webstorm、Animate等等,用的最多的还是DW,当然不同软件写出的前端Html5代码都是一致的,本网页适合修改成为各种类型的产品展示网页,比如美食、旅游、摄影、电影、音乐等等多种主题,希望对大家有所帮助。

🧡 【作者主页——🔥获取更多优质源码】

🧡 【web前端期末大作业——🔥🔥毕设项目精品实战案例(1000套)】

@TOC

<hr>

一、网站题目👨‍🎓

🥧 美食网页介绍、🍰甜品蛋糕、🦐地方美食小吃文化、🍺餐饮文化、等网站的设计与制作。

<hr>

二、网站描述✍️

🍧美食主题网站 主要对各种美食进行展示,让浏览者清晰地了解到各种美食的详细信息,便于浏览者进行选择。该模块的左侧有个美食分类,用户可以选择自己喜欢的种类,当点击种类后,就会在右侧出现该分类下的各种美食,用户可以点击自己感兴趣的食品,从而看到它的具体信息。它的具体信息包括配料、产地及它的一些功能,使用户对该食品有着全面的认识。

<hr>

三、网站介绍📚

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

📓网站程序方面:计划采用最新的网页编程语言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代码)。


四、网站效果🌐

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

<hr>

五、代码实现 🪓

HTML结构代码🧱

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>橙子之家</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/lb.js"></script>
</head>
<body>
<div id="header_wrapper">
  <div id="header">
    <div id="site_title"><a href="#">me</a></div>
    <div id="menu" class="ddsmoothmenu">
      <ul>        <li><a href="index.html">首页</a></li>
        <li><a href="zpjs.html">栽培技术</a> </li>
        <li><a href="yyjz.html">药用价值</a> </li>
        <li><a href="xgzs.html">相关知识</a></li>
        <li><a href="xxcz.html">新鲜橙子</a> </li>
        <li><a href="lyb.html">留言板</a></li>
</ul>
      <br style="clear: left" />
    </div>
    <!-- end of menu -->
  </div>
  <!-- END of header -->
</div>
<!-- END of header_wrapper -->
<div id="slider_wrapper">
  <div id="slider">
    <div id="focus">
      <ul>
        <li><a href="#"><img src="images/slider/01.jpg" /></a></li>
        <li><a href="#"><img src="images/slider/02.jpg" /></a></li>
        <li><a href="#"><img src="images/slider/03.jpg" /></a></li>
      </ul>
    </div>
  </div>
  <!-- END of slider -->
</div>
<!-- END of slider_wrapper -->
<div id="main_wrapper">
  <div id="main">
    <div class="homepage_post col half float_l">
      <h2>橙子简介</h2>
      <img src="images/image_01.jpg" class="image_fl imgage-with-frame" width="200"/>
      <p>橙子(学名:Citrus sinensis)是芸香科柑橘属植物橙树的果实,亦称为柳橙、甜橙、黄果、柑子、金环、柳丁。橙是一种柑果,它是种植了很久的混合品种,是柚子(Citrus maxima)与橘子(Citrus reticulata)的杂交品种,起源于东南亚。果实可以剥皮鲜食其果肉,果肉也可以用作其他食物的附加物。果实的另一个重要用途为榨汁。营养学分析,橙子的生命力指数为13.8750,防病指数为132.50,属于有效范围。橙子的营养价值很高,可以有效地补充多种维生素。</p>
      <p>橙子含有大量维生素C和胡萝卜素,可以抑制致癌物质的形成,还能软化和保护血管,促进血液循环,降低胆固醇和血脂;可使皮肤黑色素沉着减少,从而减少黑斑和雀斑,使皮肤白皙。多吃富含维生素C的水果蔬菜,有助于恢复皮肤弹性,防止过敏反应的发生。</p>
    </div>
    <div class="col half float_r">
      <h2>形态特征</h2>
      <p>橙子又叫金环、黄果,属芸香科植物香橙的果实,原产于中国东南部,是世界四大名果之一。橙子有甜橙和酸橙之分,酸橙又名缸橙,味酸带苦,不宜食用,大多用来制取果汁,很少鲜食,一般鲜食以甜橙为主。</p>
      <p>橙子是一种芸香科柑橘,属于常绿乔木,是最具有代表性柑橘类果树,包括甜橙和酸橙两个基本种。枝条具刺。叶长椭圆形,叶柄长,翼叶发达。花单生、丛生或呈总状花序,白色,具反卷性。种子长椭圆形或卵圆形,表面具棱纹。橙子又称黄果。原产中国南部,南方各省均有分布,而以江西、四川、广东、台湾、等省栽培较为集中。15世纪初从中国传入欧洲,15世纪末传入美洲。</p>
      <p>果圆形至长圆形,橙黄色,油胞凸起,果皮不易剥离,无苦味,中心柱充实,汁味甜而香,含有大量的糖和一定量的柠檬酸以及丰富的维生素C,营养价值较高,果实还含维生素P,具极高的医药价值。根据营养学家分析,橙子的生命力指数为13.8750,防病指数为132.50,属于有效范围。</p>
      <p></p>
    </div>
    <div class="cleaner"></div>
    <div id="food-gallery">
      <h2>新鲜橙子</h2>
      <div class="col one_fourth"> <img src="images/image_02.jpg" width="200" class="imgage-with-frame" /> </div>
      <div class="col one_fourth fp_rw"> <img src="images/image_03.jpg" width="200"  class="imgage-with-frame" /> </div>
      <div class="col one_fourth fp_rw"> <img src="images/image_04.jpg" width="200" class="imgage-with-frame" /> </div>
      <div class="col one_fourth fp_rw no_margin_right"> <img src="images/image_05.jpg"  width="200" class="imgage-with-frame" /> </div>
    </div>
    <div class="cleaner"></div>
  </div>
  <!-- END of main_wrapper -->
</div>
<!-- END of main -->
<div id="footer_wrapper">
  <div id="footer"> Copyright © 橙子之家 </div>
</div>
</body>
</html>

CSS样式代码💒

body {
	margin: 0;
	padding: 0;
	color: #6a6651;
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
	font-size: 12px;
	line-height: 1.4em; 
	background-color: #faf8ec; 
}

a, a:link, a:visited { 
	color: #d46643; 
	font-weight: normal; 
	text-decoration: none; 
}

a:hover { 
	text-decoration: underline; 
}

p { 
	margin: 0 0 20px 0; 
	padding: 0; 
}

img { 
	border: none; 
}

em { 
	color: #d46643; 
}

blockquote { 
	font-style: italic; 
	margin: 0 0 0 10px;
}

cite { 
	font-weight: bold; 
	color:#d46643; 
}

cite a, cite a:link, cite a:visited  { 
	font-size: 12px; 
	text-decoration: none; 
	font-style: normal;
}

cite span { 
	font-weight: 400; 
	color: #a9a488; 
}

.imgage-with-frame { 
	padding: 4px; 
	border: 1px solid #a6a28d; 
}

.image_fl { 
	float: left; 
	margin: 3px 20px 5px 0; 
}

.image_fr { 
	float: right; 
	margin: 3px 0 5px 20px; 
}

h1, h2, h3, h4, h5, h6 { color: #333; font-weight: normal; font-family: Georgia, "Times New Roman", Times, serif }
h1 { font-size: 48px; margin: 0 0 30px; padding: 5px 0 }
h2 { font-size: 24px; margin: 0 0 25px; padding: 3px 0 }
h3 { font-size: 20px; margin: 0 0 20px; padding: 0; }
h4 { font-size: 18px; margin: 0 0 15px; padding: 0; }
h5 { font-size: 16px; margin: 0 0 10px; padding: 0;  }
h6 { font-size: 12px; margin: 0 0 5px; padding: 0; }

.cleaner { clear: both }
.h10 { height: 10px }
.h20 { height: 20px }
.h30 { height: 30px }
.h40 { height: 40px }
.h50 { height: 50px }

.mb10 { margin-bottom: 10px }

.float_l { float: left }
.float_r { float: right }

.list { 
	margin: 10px 0 10px 10px; 
	padding: 0; 
	list-style: none;
}

.list li { 
	color:#58503f; 
	margin: 0 0 10px ; 
	padding: 0 5px 0 18px; 
	background: url(../images/list-tick.png) no-repeat scroll 0 4px;  
}

.list li.flow { 
	display: block; 
	float: left; 
	width: 180px; 
	margin-right: 20px; 
}

.list li.nomr { 
	margin-right: 0; 
}

.list li a { 
	color: #58503f; 
	font-weight: normal; 
}

.list li a:hover { 
	color: #9e1906; 
}

#header_wrapper {
	width: 100%;
	height: 140px;
	background: url(../images/header.jpg) repeat-x
}
#header {
	width: 960px;
	padding: 0 10px;
	margin: 0 auto;
}

#slider_wrapper {
	width: 100%;
	height: 446px;
	background: #aca177 url(../images/slider.jpg) no-repeat center top
}

#slider {
	width: 960px;
	padding: 33px 10px;
	height: 446px;
	margin: 0 auto;
	overflow: hidden;
}

#main_wrapper {
	width: 100%;
	background: url(../images/main.jpg) repeat-x top
}

#main {
	width: 960px;
	padding:10px; padding-top:30px;
	margin: 0 auto;
}

#footer_wrapper {
	width: 100%;
	background: #38362d;
	border-top: 5px solid #ffffff
}
#footer {
	width: 960px;
	padding: 30px 10px;
	margin: 0 auto;
}

#site_title { 
	float: left; 
}

#site_title a { 
	margin-top: 50px; 
	display: block; 
	font-size: 12px; 
	font-family: Georgia, "Times New Roman", Times, serif; 
	width: 240px; 
	height: 54px; 
	color: #acacac; 
	text-indent: -10000px; 
	background: url(../images/logo.png) no-repeat center left; 
}

#menu { float: right }

.homepage_post { 
	margin-bottom: 40px; 
}

.homepage_post h2 { 
	margin-bottom: 0; 
}

.homepage_post .post_meta { 
	font-style: italic; 
	font-size: 11px; 
	margin-bottom: 20px; 
}

#food-gallery img, #food-gallery h5 { margin-bottom: 20px; }

.testimonial { 
	padding: 0 0 20px; 
	margin-bottom: 30px;  
	border-bottom: 1px dotted #bfb7a8; 
	display: block; 
}

.testimonial p { 
	margin-bottom: 5px; 
}

.gallery_box { 
	float: left; 
	width: 220px; 
	margin: 0 20px 20px 0; 
	text-align: center; 
}

.gallery_box img { 
	margin-bottom: 10px; 
}

.gallery_box h5 { 
	font-size: 12px; 
	font-weight: 700; 
	margin-bottom:0; 
}

.gallery_box p { 
	font-size: 11px; 
}

.post { 
	margin-bottom: 60px; 
}

.post .post_image { 
	width: 600px; 
	position: relative; 
	padding: 4px; 
	border: 1px solid #a6a28d; 
	margin-bottom: 20px;
}

.post .post_image .date { 
	position: absolute; 
	width: 114px; 
	height: 40px; 
	top: 10px; 
	left: -7px; 
	background: url(../images/date.png) no-repeat left; 
	font-size: 11px; 
	line-height: 32px; 
	color: #fff; 
	font-weight: 700; 
	text-align: center; 
}

#comment_section {
	clear: both;
	margin-bottom: 60px;
	width: 590px;
}

.first_level {
	margin: 0; padding: 0;
}

.comments {
	list-style: none; 
}

.comments li { 
	margin-bottom: 10px; 
	list-style:none; 
}

.comments li .commentbox1 { 
	border-bottom: 1px solid #ccc;  
}

.comments li .commentbox2 { 
	border-bottom: 1px solid #ccc;  
}


	border-bottom: 1px solid #a52b25
}

.ddsmoothmenu ul li ul li .last {
	border-bottom: none;
}

.ddsmoothmenu ul li ul li a.selected, .ddsmoothmenu ul li ul li a:hover {
	color: #fff;
	width: 160px;
	padding-left: 12px;
	background: #a52b25;
}





#focus {width:980px; height:440px; margin:auto; overflow:hidden; position:relative; margin-top:-40px; margin-left:-30px;}
#focus ul {height:440px; position:absolute;}
#focus ul li {float:left; width:980px; height:440px; overflow:hidden; position:relative; }
#focus ul li div {position:absolute; overflow:hidden;}
#focus ul li img {width:940px; height:440px;}
#focus .btnBg {position:absolute; width:980px; height:20px; left:0; bottom:0;}
#focus .btn {position:absolute; width:980px; height:10px; padding:5px 10px; right:0; bottom:0; text-align:right;}
#focus .btn span {display:inline-block; _display:inline; _zoom:1; width:25px; height:10px; _font-size:0; margin-left:5px; cursor:pointer; background:#fff;}
#focus .btn span.on {background:#fff;}
#focus .preNext {width:45px; height:100px; position:absolute; top:90px; background:url(img/sprite.png) no-repeat 0 0; cursor:pointer;}
#focus .pre {left:0;}
#focus .next {right:0; background-position:right top;}

💂【获取方式】

gitee码云源码仓库-欢迎Star: https://gitee.com/zhanyuqiu2022/my-app

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 一、网站题目👨‍🎓
  • 二、网站描述✍️
  • 三、网站介绍📚
  • 四、网站效果🌐
  • 五、代码实现 🪓
    • HTML结构代码🧱
      • CSS样式代码💒
      • 💂【获取方式】
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档