• Web前端大作业—— 饮食餐饮网站 咖啡网站pc端带轮播(5个页面)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" href="css/style.css">	
    head>
    <body>
    <div class="content">
        <div class="header">
            <div class="logo"><a href="#"><img class=pic src="images/logo.png">a>div>
            <div class="nav">
                <ul>
                    <li><a href="index.html">首页a>li>
                    <li><a href="kafei.html">咖啡及文化a>li>
                    <li><a href="meishi.html">美食与饮品a>li>
                    <li><a href="xinwen.html">美食新闻a>li>
                    <li><a href="liuyan.html">留言板a>li>
                ul>
            div>
        div>
        <div class="lunbo">   
            <div class="flashbox">
                <div id=SwitchBigPic>
                    <div><a href="#"><img class="pic" src="images/01.jpg">a>div>
    				<div><a href="#"><img class="pic" src="images/02.jpg">a>div>
                    <div><a href="#"><img class="pic" src="images/03.jpg">a>div>
    				<div><a href="#"><img class="pic" src="images/04.jpg">a>div>
                    <div><a href="#"><img class="pic" src="images/05.jpg">a>div>                           
                div>
                <ul id=SwitchNav>
                    <li><a href="#"><img src="images/01.jpg"><b>夏天是什么味道?b>a> li>
                    <li><a href="#"><img src="images/02.jpg"><b>夏季甜点b>a> li>
                    <li><a href="#"><img src="images/03.jpg"><b>美味香槟b>a> li>
                    <li><a href="#"><img src="images/04.jpg"><b>各式点心b>a> li>
                    <li><a href="#"><img src="images/05.jpg"><b>店长推荐b>a> li>
                ul>
            div>
        div>
        <div class="main">
            <div class="tuijian">
            	<div class="title">原色咖啡新品推荐 div>
    			<ul>
                	<li><a href="#"><img src="images/tuijian1.jpg"><p>夏季饮品p>a>li>
                    <li><a href="#"><img src="images/tuijian2.jpg"><p>夏季饮品p>a>li>
                    <li><a href="#"><img src="images/tuijian3.jpg"><p>夏季饮品p>a>li>
                ul>
            div>
            <div class="share">
            	<div class="title">分享到 <a  href="#"><img class=pic src="images/shrae.png" >a>div>
                <p>QQ:12345678p>
                <p>E-mail:<a class="__yjs_email__" href="/cdn-cgi/l/email-protection" data-yjsemail="05343736313033323d4574742b6666">[email protected]a><script data-yjshash='f9e31' type="text/javascript">/*  */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-yjshash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-yjsemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */script>p>
            div>
        div>
        <div class="footer">
            <p> <a class="__yjs_email__" href="/cdn-cgi/l/email-protection" data-yjsemail="d83f51503e455b3e51583e4451983d7c573d757b3f4c443f5a61f53d564730516a3d4a4e3d4d79">[email protected]a><script data-yjshash='f9e31' type="text/javascript">/*  */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-yjshash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-yjsemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */script> p>
            <p> 京ICP备12345678号p>
        div>
    	  <script src="js/changimages.js" type=text/javascript>script>
          <script src="js/prototype.js" type=text/javascript>script>
          <script>
            var bigswitch = new SwitchPic(
                {
                    bigpic:"SwitchBigPic",
                    switchnav:"SwitchNav",
                    selectstyle:"selected",
                    objname:"bigswitch"
                }
            ) ;
            bigswitch.goSwitch(bigswitch,0);
            bigswitch.autoSwitchTimer = setTimeout("bigswitch.autoSwitch(bigswitch) ;", 3000);
        script>
    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样式代码💒

    @charset "utf-8";
    * {
    	padding:0;
    	margin:0;
    }
    body {
    	font-size:12px;
    	font-family:arial;
    	color:#595959;
    }
    img {
    	border:none;
    }
    ul,li {
    	list-style-type:none;
    }
    a {
    	color:#333;
    	text-decoration:none
    }
    a:hover {
    	color:#ff0000;
    	text-decoration:underline
    }
    .content {
    	width:960px;
    	height:auto;
    	margin:auto;
    	padding:20px;
    	background:#fafafa;
    }
    .header {
    	width:960px;
    	height:80px;
    	margin:10px auto;
    }
    .logo {
    	width:120px;
    	height:80px;
    	float:left;
    }
    .logo img {
    	display:block;
    	height:72px;
    	margin-top:4px;
    }
    .nav {
    	height:80px;
    	line-height:80px;
    }
    .nav li {
    	float:left;
    	padding:5px 20px;
    }
    .nav li a {
    	font-size:24px;
    	color:#333;
    	font-weight:bold
    }
    .nav li a:hover {
    	font-size:24px;
    	color:#900;
    	text-decoration:none;
    }
    /*轮播*/
    .lunbo {
    	width:960px;
    	height:430px;
    	margin:auto;
    	margin-bottom:30px;
    }
    .flashbox {
    	overflow:hidden;
    	position:relative;
    	width:100%;
    	height:430px;
    }
    .flashbox .pic {
    	width:760px;
    	height:430px;
    	position:absolute;
    	left:0;
    	top:0;
    }
    .flashbox ul {
    	width:200px;
    	height:340px;
    	position:absolute;
    	left:760px;
    	top:0;
    }
    .flashbox li {
    	margin-bottom:1px;
    	overflow:hidden;
    	line-height:24px;
    	height:85px
    }
    .flashbox li a {
    	display:block;
    	padding-left:5px;
    	padding-top:10px;
    	padding-bottom:10px;
    	background:#fff;
    	color:#333;
    	position:relative;
    	height:65px
    }
    .flashbox li.selected a {
    	background:#fff;
    	color:#333;
    	text-decoration:none
    }
    .flashbox li a:hover {
    	background:#74685b;
    	color:#333;
    	text-decoration:none
    }
    .flashbox li img {
    	width:100px;
    	height:65px;
    	float:left;
    	margin-right:5px;
    }
    /*内容*/
    .main {
    	width:960px;
    	margin:auto;
    	overflow:hidden;
    }
    .tuijian {
    	width:620px;
    	height:180px;
    	float:left;
    }
    .tuijian .title {
    	height:30px;
    	line-height:30px;
    	border-bottom:2px solid #222;
    	font-size:16px;
    	font-weight:bold;
    	margin-bottom:8px;
    }
    .tuijian  li {
    	width:190px;
    	height:140px;
    	float:left;
    	margin-left:8px;
    	margin-right:8px;
    }
    .tuijian  li img {
    	width:190px;
    	height:116px;
    	display:block;
    }
    .tuijian  li p {
    	height:24px;
    	line-height:24px;
    	background:#222;
    	text-align:center;
    }
    .tuijian  li a {
    	color:#fff;
    }
    .tuijian  li a:hover {
    	text-decoration:underline;
    }
    .share {
    	width:300px;
    	height:180px;
    	float:right;
    }
    .share .title {
    	height:30px;
    	line-height:30px;
    	border-bottom:2px solid #222;
    	font-size:16px;
    	font-weight:bold;
    	margin-bottom:8px;
    }
    .share p {
    	font-size:14px;
    	line-height:26px;
    	color:#666;
    	text-align:left;
    }
    /*底部*/
    .footer {
    	width:960px;
    	height:60px;
    	margin:auto;
    	border-top:6px solid #ff0000;
    	background:#282828;
    	color:#fff;
    	padding-top:20px;
    	margin-top:20px;
    }
    .footer p {
    	text-align:center;
    }
    /*咖啡文化*/
    .kafei {
    	overflow:hidden;
    }
    .kafei .title {
    	height:30px;
    	line-height:30px;
    	border-bottom:2px solid #222;
    	font-size:16px;
    	font-weight:bold;
    	margin-bottom:8px;
    }
    .kafei p {
    	line-height:2;
    	text-indent:24px;
    }
    .kafei img {
    	display:block;
    	width:100%;
    	margin:10px 0;
    }
    /*美食饮品*/
    .meishi {
    	overflow:hidden;
    }
    .meishi .title {
    	height:30px;
    	line-height:30px;
    	border-bottom:2px solid #222;
    	font-size:16px;
    	font-weight:bold;
    	margin-bottom:8px;
    }
    .meishi li {
    	width:290px;
    	float:left;
    	margin:10px;
    	border:5px solid #fff;
    }
    .meishi li img {
    	width:290px;
    	height:200px;
    }
    /*美食新闻*/
    .xinwen .title {
    	height:30px;
    	line-height:30px;
    	border-bottom:2px solid #222;
    	font-size:16px;
    	font-weight:bold;
    	margin-bottom:8px;
    }
    .xinwen li {
    	height:40px;
    	line-height:40px;
    	border-bottom:1px dashed #ccc;
    }
    .xinwen li p {
    	width:800px;
    	float:left;
    }
    .xinwen li span {
    	float:right;
    }
    /*留言*/
    .liuyan .title {
    	height:30px;
    	line-height:30px;
    	border-bottom:2px solid #222;
    	font-size:16px;
    	font-weight:bold;
    	margin-bottom:8px;
    }
    .liuyan .input-box {
    	width:600px;
    	margin:auto;
    	line-height:30px;
    	margin-top:30px;
    }
    .liuyan .input-box input {
    	width:500px;
    	height:30px;
    
    }
    .liuyan .input-box textarea {
    	width:500px;
    	height:100px;
    }
    .liuyan .btn {
    	width:600px;
    	margin:auto;
    	margin-top:30px;
    	text-align:center;
    }
    .liuyan .btn input {
    	width:100px;
    	height:30px;
    	margin:10px;
    }
    
    
    
    
    • 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

    八、更多干货🎁

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

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

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

  • 相关阅读:
    21. 合并两个有序链表 --力扣 --JAVA
    what‘s the meaning of rv32imafdc
    聚类-kmeans
    MySQL进阶查询
    Servlet的生命周期
    高仿英雄联盟游戏网页制作作业 英雄联盟LOL游戏HTML网页设计模板 简单学生网页设计 静态HTML CSS网站制作成品
    关键短语提取的典型方法
    MVC第三波书店图书类型获取和实现下拉框功能
    RecyclerView滑动时添加缩放效果
    ZooKeeper 客户端API操作
  • 原文地址:https://blog.csdn.net/qq_38512571/article/details/127816478