• 用DIV+CSS技术设计的餐饮美食网页与实现制作(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>
    <html>
    	<head>
    		<meta charset="UTF-8">
    		<title>登录title>
    		<link rel="stylesheet" type="text/css" href="css/login.css"/>
    	head>
    	<body>
    		 <div id="box">
                <div class="item">
                	<div class="title">
                		<h3>美食汇登录h3>
                		<p>Mei Shi Hui Loginp>
                	div>
                	
                	<div class="login-box">
    		            	<div class="zh">
    		            		<label> 号:label>
    		            	<input type="text" name="" id="text" onfocus="tips()" class="text" value="" placeholder="请输入账号"/><span id="txt">
    		            		
    		            	span>
    		            	div>
    		            	<div class="password">
    		            		<label> 码:label>
    		            	<input type="password" name=""  id="pwd" onfocus="tips()" class="pwd" value="" placeholder="请输入密码"/><span id="txt">
    		            	div>
    		            <p id="warning">
    		            		*账号或密码为空
    		            	p>	
    		            		<a href="javascript:;"  class="login" id="login">登录a>
    		          div>
                
                div>
            div>
    	body>
    	
    	<script src="js/main.js" type="text/javascript">
    	script>
    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

    CSS样式代码💒

    
    *{  
        margin: 0;   /* 外边距0*/
        padding: 0;  /* 外边距0*/
    
    }
    body{
        overflow-x: hidden; /* 超出隐藏*/
    }
    a{
    	color: white;   /* 颜色白色*/
    	text-decoration: none;  /* 超出隐藏*/ 
    }
    ul,li{
        list-style: none;   /* 超出隐藏*/
    }
    .min-width{
    	width: 1200px;
    	margin: 0 auto;
    }
    header{
       width:1600px;
        height: 450px;
        overflow: hidden;
    }
    /*轮播图start*/
    
    #benner {
    	width:1600px;
    	height:450px;
    }
    #benner .imga {
    	display:none;
    }
    #benner .img {
    	width: 100%;
    	height: 100%
    }
    #benner .img .active {
    	display:block;
    }
    #benner .title {
    	width:101px;
    	height:16px;
    	background-color: black;
    	/*background-color:rgba(226,226,226,0.6);*/
    	border-radius:30px;
    	margin-top:-35px;
    	float:left;
    	margin-left:45%;
    	margin-right:40%;
    	padding:6px 0px 0px 10px;
    	position:relative;
    }
    #benner .title .nr {
    	list-style:none;
    	width:10px;
    	height:10px;
    	background:#fff;
    	border-radius:10px;
    	float:left;
    	margin-right:10px;
    	margin-bottom:0px;
    }
    #benner .title .active {
    	background:#db192a;
    }
    .nav .uu-lists{
    	position: absolute;
    	top: 80px;
    	z-index: 99;
    	height: 400px !important;
    	display: flex;
    	flex-direction:column;
    	justify-content: flex-start;
    	align-items: center;
    	background-color: rgba(255,87,34,.7);
    	transition:  .5s ease;
    	opacity: 0;
    }
    .uu-lists>li{
    	float: none;
    	display: block;
    	border-bottom: 1px solid white;
    	/*background-color: rgba(255,87,34,.7);*/
    }
    
    .uu-lists>li:last-child{
    	border-bottom: none;
    }
    /*轮播图end*/
    .nav{
    	position: relative;
        width: 100%;
        height: 80px;
        transition: .8s ease; 
         background-color: rgba(255,87,34,.7);
        }
    .nav ul{
        width: 100%;
        margin: 0 auto;
        height: 100%;
       
    }
    .nav ul li{
        float: left;
        width: 140px;
        height: 100%;
       
        color: white;
        text-align: center;
        line-height: 80px;
        cursor: pointer;
    }
    
    .nav ul .logo{
    	width: 300px;
    	background: none;
    	text-align: center;
    	font-size: 34px;
    	font-weight: 700;
    }
    .img{
         width: 100%;
        height: 580px;
        margin: 0 auto;
    }
    .img ul{
        position: relative;
          width: 100%;
        height: 100%;
        
    }
    .img ul li{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: all .5s ease;
    }
    .img ul li img{
       width: 100%;
       height: 100%;
    }
    .img ul .active{
        opacity: 1;
        animation: enlarge 4s linear infinite;  
    }
    @keyframes enlarge{
        0%{
            transform: scale(1.15);
            opacity: 0.8;
        }
        50%{
            transform: scale(1.2);
            opacity: 0.7;
        }
        100%{
            transform: scale(1.25);
            opacity: 0.6;
        }
    
    }
    /*关于我们start*/
    nav{
        width: 100%;
        height: 300px;
        text-align: center;
    }
    nav h3,.wrap h3{
    	width: 200px;
    	height: 60px;
    	text-align: center;
    	margin: 0px auto;
    	padding-top: 60px;
    	border-bottom: 5px solid rgb(255,87,34);
    	font-size: 34px;
    	color:rgb(255,87,34);
    }
    nav p{
    	width: 800px;  /*宽度800px*/
    	height: 60px;  /*高度800px*/
    	padding-top: 40px;
    	margin: 0px auto;  /*居中显示*/
    	font-size: 24px;
    	color:#aaa;
    	line-height: 46px;
    }
    /*关于我们end*/
    /*美食详情start*/
    .wrap{
        width: 100%;
        height: 800px;
        background-color: #f5f5f5;
    }
    .wrap .wrap-uu{
    	width: 1200px;
    	height: 700px;
    	margin: 30px auto;
    }
    .wrap ul li{
    	width: 350px;
    	height: 250px;
    	float: left;
    	margin: 20px;
    	background-color: white;
     	text-align: center;
     	
     	border-radius: 4px;
    }
    .wrap ul li h2{
    	color: rgb(255,87,34);
    	margin-top: 60px;
    }
    .wrap ul li p{
    	margin-top: 20px;
    }
    .wrap ul li:hover{
    	background-color: rgb(189,208,1);
    	border:none;
    	color: white;
    	/*border: 1px solid rgb(255,87,34);*/
    }
    .wrap ul li:nth-of-type(odd){
    	background: url(../img/1.jpg) no-repeat;  /*背景图片*/
    	background-size: cover;
    }
    
    
    
    /*美食详情start*/
    .news{
        width: 100%;
        height: 400px;
      	background: url(../img/banner.jpg) no-repeat;  /*背景图片*/
    	background-size: cover;
    }
    .news ul{
    	height: 400px;
    }
    .news ul li{
    	float: left;
    	width: 360px;
    	margin: 20px;
    	text-align: center;
    }
    .news ul .news-img{
    	width: 200px;
    	height: 200px;
    	border-radius: 50%;
    	border:1px solid rgb(255,87,34);
    	text-align: center;
    	margin: 0 auto;
    	overflow: hidden;
    }
    .news ul li h4{
    	margin: 10px 0px;
    	font-size: 22px;
    	color: rgb(255,87,34);
    }
    .news ul li p{
    	color: white;
    }
    .news ul .news-img img{
    	width: 200px;
    	height: 200px;
    	margin: 0 auto;        /*DIV居中*/
    	text-align: center;     /*文本居中*/
    	border-radius: 50%;      /*图片圆形*/
    	transition: .5s ease;    /*执行动画*/
    }
    .news ul .news-img img:hover{
    	transform: scale(1.1);    /*悬停放大*/
    }
    footer{
    	width: 100%;
    	height: 80px;
    	background-color:rgb(33,33,33);
    }
    footer p{
    	text-align: center;
    	color: white;
    	line-height: 40px;
    	font-size: 14px;
    }
    
    
    
    /*小屏幕*/
    
    @media screen and (max-width: 768px) {
    	.wrap {
    		height: 100%;
    	}
    	.wrap .wrap-uu {
    		width: 100%;
    		height: 100%;
    	}
    	.wrap-uu{
    		 display: flex;
    		 flex-direction:column;
    		 align-items: center;
    	}
    	header #benner .img img{
    		width: 768px;
    		height: 100%;
    	}
    	.news ul li {
    		width: 180px;
    	}
    	nav p{
    		width: 768px;
    		font-size: 18px;
    	}
    }
    /*平板*/
    
    @media screen and (min-width: 768px) and (max-width: 992px) {
    	
    }
    /*中等屏幕*/
    
    @media screen and (min-width: 992px) and (max-width: 1200px) {
    	
    }
    /*大屏幕,或者宽屏*/
    
    @media screen and (min-width: 1200px) {
    	.uu-nav {
    		width: 100%;
    	}
    }
    
    
    
    
    
    /*小屏幕*/
    
    @media screen and (max-width: 768px) {
    	.uu-nav {
    		width: 768px;
    		min-width: 490px;
    		
    	}
    	.nav-lists{
    		display: none;
    	}
    	.nav ul .ico{
    		width: 160px;
    		text-align: right;
    		font-size: 26px;
    		
    	}
    }
    /*平板*/
    
    @media screen and (min-width: 768px) and (max-width: 992px) {
    	.uu-nav {
    		display: flex;
    		justify-content: space-between;
    		align-items: center;
    	}
    	.nav ul .ico{
    		display: none;
    	}
    }
    /*中等屏幕*/
    
    @media screen and (min-width: 992px) and (max-width: 1200px) {
    	.nav ul .ico{
    		display: none;
    	}
    }
    /*大屏幕,或者宽屏*/
    
    @media screen and (min-width: 1200px) {
    	.nav ul .ico{
    		display: none;
    	}
    }
    
    
    • 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
    • 338
    • 339
    • 340
    • 341
    • 342
    • 343
    • 344
    • 345
    • 346
    • 347
    • 348
    • 349
    • 350
    • 351
    • 352
    • 353
    • 354
    • 355
    • 356
    • 357
    • 358
    • 359
    • 360
    • 361
    • 362
    • 363
    • 364
    • 365
    • 366
    • 367
    • 368
    • 369
    • 370
    • 371
    • 372
    • 373
    • 374
    • 375
    • 376
    • 377
    • 378
    • 379
    • 380
    • 381
    • 382
    • 383
    • 384

    八、更多干货🎁

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

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

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

  • 相关阅读:
    【最新鸿蒙应开发】——HarmonyOS沙箱目录
    178文章复现:基于matlab的微震图像去噪
    近来的一些小感悟
    JVM常见面试题
    Android Studio Error “Unsupported class file major version 61“---异常信息记录
    计算机网络(第二弹) --- 网络传输的基本流程最容易理解的讲述
    从零开始,快速掌握创建百度百科技巧
    斩获双奖|易知微荣获“2021中国数字孪生解决方案优秀供应商”“中国智能制造优秀推荐产品”双奖项!
    软件开发全生命周期必备文档整理(@附文档下载)
    Producer
  • 原文地址:https://blog.csdn.net/qq_38514421/article/details/128128382