行业知识
基于Web的美食分享平台的设计与实现——HTML+CSS+JavaScript水果介绍网页设计(橙子之家)
静态网站的编写主要是用HTML DIV+CSS JS等来完成页面的排版设计,常用的网页设计软件有Dreamweaver、EditPlus、HBuilderX、VScode 、Webstorm、Animate等等,用的最多的还是DW,当然不同软件写出的前端Html5代码都是一致的,本网页适合修改成为各种类型的产品展示网页,比如美食、旅游、摄影、电影、音乐等等多种主题,希望对大家有所帮助。
精彩专栏推荐
【作者主页——获取更多优质源码】
【web前端期末大作业——毕设项目精品实战案例(1000套)】
文章目录
- 一、网站题目
- 二、网站描述✍️
- 三、网站介绍
- 四、网站效果
- 五、代码实现
- HTML结构代码
- CSS样式代码
- 八、更多干货
一、网站题目
美食网页介绍、甜品蛋糕、地方美食小吃文化、餐饮文化、等网站的设计与制作。
二、网站描述✍️
美食主题网站 主要对各种美食进行展示,让浏览者清晰地了解到各种美食的详细信息,便于浏览者进行选择。该模块的左侧有个美食分类,用户可以选择自己喜欢的种类,当点击种类后,就会在右侧出现该分类下的各种美食,用户可以点击自己感兴趣的食品,从而看到它的具体信息。它的具体信息包括配料、产地及它的一些功能,使用户对该食品有着全面的认识。
三、网站介绍
网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。
网站程序方面:计划采用最新的网页编程语言HTML5+CSS3+JS程序语言完成网站的功能设计。并确保网站代码兼容目前市面上所有的主流浏览器,已达到打开后就能即时看到网站的效果。
网站素材方面:计划收集各大平台好看的图片素材,并精挑细选适合网页风格的图片,然后使用PS做出适合网页尺寸的图片。
网站文件方面:网站系统文件种类包含:html网页结构文件、css网页样式文件、js网页特效文件、images网页图片文件;
网页编辑方面:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。
其中:
(1)html文件包含:其中https://blog.csdn.net/m0_73081085/article/details/index.html是首页、其他html为二级页面;
(2) css文件包含:css全部页面样式,文字滚动, 图片放大等;
(3) js文件包含:js实现动态轮播特效, 表单提交, 点击事件等等(个别网页中运用到js代码)。
四、网站效果
五、代码实现
HTML结构代码
橙子之家 me
- 首页
- 栽培技术
- 药用价值
- 相关知识
- 新鲜橙子
- 留言板
橙子简介
橙子(学名:Citrus sinensis)是芸香科柑橘属植物橙树的果实,亦称为柳橙、甜橙、黄果、柑子、金环、柳丁。橙是一种柑果,它是种植了很久的混合品种,是柚子(Citrus maxima)与橘子(Citrus reticulata)的杂交品种,起源于东南亚。果实可以剥皮鲜食其果肉,果肉也可以用作其他食物的附加物。果实的另一个重要用途为榨汁。营养学分析,橙子的生命力指数为13.8750,防病指数为132.50,属于有效范围。橙子的营养价值很高,可以有效地补充多种维生素。
橙子含有大量维生素C和胡萝卜素,可以抑制致癌物质的形成,还能软化和保护血管,促进血液循环,降低胆固醇和血脂;可使皮肤黑色素沉着减少,从而减少黑斑和雀斑,使皮肤白皙。多吃富含维生素C的水果蔬菜,有助于恢复皮肤弹性,防止过敏反应的发生。
形态特征
橙子又叫金环、黄果,属芸香科植物香橙的果实,原产于中国东南部,是世界四大名果之一。橙子有甜橙和酸橙之分,酸橙又名缸橙,味酸带苦,不宜食用,大多用来制取果汁,很少鲜食,一般鲜食以甜橙为主。
橙子是一种芸香科柑橘,属于常绿乔木,是最具有代表性柑橘类果树,包括甜橙和酸橙两个基本种。枝条具刺。叶长椭圆形,叶柄长,翼叶发达。花单生、丛生或呈总状花序,白色,具反卷性。种子长椭圆形或卵圆形,表面具棱纹。橙子又称黄果。原产中国南部,南方各省均有分布,而以江西、四川、广东、台湾、等省栽培较为集中。15世纪初从中国传入欧洲,15世纪末传入美洲。
果圆形至长圆形,橙黄色,油胞凸起,果皮不易剥离,无苦味,中心柱充实,汁味甜而香,含有大量的糖和一定量的柠檬酸以及丰富的维生素C,营养价值较高,果实还含维生素P,具极高的医药价值。根据营养学家分析,橙子的生命力指数为13.8750,防病指数为132.50,属于有效范围。
新鲜橙子
Copyright © 橙子之家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 p {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;}八、更多干货
1.如果我的博客对你有帮助、如果你喜欢我的博客内容,请 “点赞” “✍️评论” “收藏” 一键三连哦!
2.【关注我| 获取更多源码 | 优质文章】 带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!
3.以上内容技术相关问题欢迎一起交流学习