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


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


    🎀 精彩专栏推荐👇🏻👇🏻👇🏻

    🧡 【作者主页——🔥获取更多优质源码】
    🧡 【web前端期末大作业——🔥🔥毕设项目精品实战案例(1000套)】


    一、网站题目👨‍🎓

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


    二、网站描述✍️

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


    三、网站介绍📚

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

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


    四、网站效果🌐

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


    五、代码实现 🪓

    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="#">mea>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>
        
      div>
      
    div>
    
    <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>
      
    div>
    
    <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>
      
    div>
    
    <div id="footer_wrapper">
      <div id="footer"> Copyright © 橙子之家 div>
    div>
    body>
    html>
    
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78

    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;}
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • 213
    • 214
    • 215
    • 216
    • 217
    • 218
    • 219
    • 220
    • 221
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242
    • 243
    • 244
    • 245
    • 246
    • 247
    • 248
    • 249
    • 250
    • 251
    • 252
    • 253
    • 254
    • 255
    • 256
    • 257
    • 258
    • 259
    • 260
    • 261
    • 262
    • 263
    • 264
    • 265
    • 266
    • 267
    • 268
    • 269
    • 270
    • 271
    • 272
    • 273
    • 274
    • 275
    • 276
    • 277
    • 278
    • 279
    • 280
    • 281
    • 282
    • 283
    • 284
    • 285
    • 286
    • 287
    • 288
    • 289
    • 290
    • 291
    • 292
    • 293
    • 294
    • 295
    • 296
    • 297
    • 298
    • 299
    • 300
    • 301
    • 302
    • 303
    • 304
    • 305
    • 306
    • 307
    • 308
    • 309
    • 310
    • 311
    • 312
    • 313
    • 314
    • 315
    • 316
    • 317
    • 318
    • 319
    • 320
    • 321
    • 322
    • 323
    • 324
    • 325
    • 326
    • 327
    • 328
    • 329
    • 330
    • 331
    • 332
    • 333
    • 334
    • 335
    • 336
    • 337

    八、更多干货🎁

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

    2.💗【👇🏻👇🏻👇🏻关注我| 获取更多源码 | 优质文章】 带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!

    3.以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻🔥
    在这里插入图片描述

  • 相关阅读:
    手写节流和防抖
    SQL笔记——数据库恢复技术
    nginx配置域名(ssl和非ssl形式)
    MSQL系列(五) Mysql实战-索引最左侧匹配原则分析及实战
    MySQL innoDB 间隙锁产生的死锁问题
    如何应用Python助你在股票中获利?
    C语言--结构体(内容超级详细)
    “Python+”集成技术高光谱遥感数据处理与机器学习深度应用
    python+vue+elementui家教信息服务网站django
    Java IO流 转换流 和 Properties处理配置文件
  • 原文地址:https://blog.csdn.net/qq_38514421/article/details/128128202