大学生美食主题网页作品 美食网站设计作业模板 学生网页制作源代码下载
🌩️ 精彩专栏推荐👇🏻👇🏻👇🏻
💂 作者主页: 【进入主页—🚀获取更多源码】
🎓 web前端期末大作业: 【📚HTML5网页期末作业 (1000套) 】
🧡 程序员有趣的告白方式:【💌HTML七夕情人节表白网页制作 (110套) 】
📂文章目录
- 二、📚网站介绍
- 三、🔗网站效果
- ▶️1.视频演示
- 🧩 2.图片演示
- 四、💒 网站代码
- 🧱HTML结构代码
- 🏠CSS样式代码
- 五、🎁更多源码
二、📚网站介绍
📔网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。
📓网站程序方面:计划采用最新的网页编程语言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代码)。
三、🔗网站效果
▶️1.视频演示
F72SJ-美食网js三级留言表单素材(8页)
🧩 2.图片演示








四、💒 网站代码
🧱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" />
head><body>
<div class="main">
<div class="top">
<div class="logo"><img src="img/logo.jpg" />div>
<div id="nav">
<ul>
<li><a href="index.html">首页a>li>
<li><a href="wenhua.html">饮食文化a>li>
<li><a href="meishi.html">美食专区a>li>
<li><a href="yangsheng.html">健康养生a>li>
<li><a href="liuyan.html">用户留言a>li>
ul>
div>
div>
<div class="box" id="box"><div class="inner"><ul><li><a href="#"><img src="img/banner1.jpg" alt="">a>li><li><a href="#"><img src="img/banner2.jpg" alt="">a>li><li><a href="#"><img src="img/banner3.jpg" alt="">a>li>ul><ol class="bar">ol><div id="arr"><span id="left"><span><span id="right">>span>div>div>
div>
<div class="box01">
<div class="ner">
<img src="img/banquan01.jpg">
<div class="wenz">
<div class="tex">饮食文化div>
<p>民以食为天,世界上任何一个国家都有一个传统的饮食文明与其它文明共同在历史中轮回。每个地区都有与众不同的饮食习惯和味觉倾向,而各自将这些精妙的技艺发展成了一种习俗,一种文化,这使得无数食客流连在世界的每一个角落。p>
div>
div>
div><div class="box02">
<div class="wenzi">
<p>在亚洲的东方有一个拥有悠久文明历史的国度,那里有令人垂涎的山珍,也有令人回肠的美味。来自五湖四海的食材和调味品正在无时无刻的触动着亿万人的神经和味蕾。p>
div>
<img src="img/fcc02.jpg">
<img src="img/fcc03.jpg">
div>
<div class="box3">
<div class="box3-tit">健康养生<br>
<span>—— Health preservation ——span>
div>
<div class="nero">
<img src="img/img1.jpg"><div class="jies01">
<div class="tit">萝卜炖羊肉 div>
<p>萝卜炖羊肉是用白萝卜、羊肉制作的一道家常菜。萝卜软烂,清香味淡,具有清痰止咳,温中益气之功效。 增强机体免疫功能:有助于增强机体的免疫功能,提高抗病能力。p>
<br>
<span><a href="ner02.html">更多 → a> span>
div><img class="mar30 " src="img/img2.jpg">
<div class="jies01 marl mart30">
<div class="tit coh">银耳莲子羹div>
<p>羹浓味甜,口感浓甜润滑,美味可口。此汤具养阴润肺,生津整肠之效,有润肺养胃、美容养颜的功能,适用于伴有涕中带血的鼻咽癌病人和女性朋友。p>
<br>
<span><a href="ner01.html">更多 → a> span>
div>
<img class="mar30 mart30" src="img/img3.jpg">
<div class="jies01 mart30">
<div class="tit coh">乌鸡汤div>
<p>乌鸡汤属于粤菜,有着悠久的历史,以特有的菜式和韵味,独树一帜,粤菜是中国著名八大菜系之一,在国内外享有盛誉。粤菜的主要性格为:取之自然,烹之自由 ,食之自在!p>
<br>
<span><a href="ner03.html">更多 → a> span>
div>div>div><div class="foot">
<p>版权所有:舌尖上的美食网p>
div>div><script src="js/banner.js" type="text/javascript">script>
body>
html>
🏠CSS样式代码
@charset "utf-8";
body{ margin:0 auto; font-size:14px; font-family: "微软雅黑"; line-height:22px; background:#c0c0c0; }div,p,input,ul,li,img,h1,h2,h3{ height:auto; margin:0;; padding:0; vertical-align:middle ;}li{ list-style:none;}a{color:#333;text-decoration:none;}a:link{ color:#333;}a:hover {color:#c50d0d;text-decoration:none;overflow:hidden;}
.main{ width:1200px; height:auto; overflow:hidden; min-height:1000px; margin:0 auto; background:#FFF;}
.top{ width:100%; height:120px;}
.logo{ width: 202px;height: 68px;float: left;margin-top: 30px;margin-left: 40px;}#nav{ width: 655px;
height: 50px;
background: url(../img/nav.png) no-repeat;
margin: 0 auto;
margin-left: 10px;
float: right;
margin-top: 40px;
margin-right: 40px;}
#nav ul{ width:655px; height:50px; line-height:50px; font-size:14px; margin:0 auto;}
#nav ul li{ width:125px; height:50px; line-height:50px; color:#FFF; float:left; text-align:center;}
#nav ul li a {
font-family: "微软雅黑";
font-size: 18px;
margin-left: 2px;
display: block;
color:#FFF;
}.box {width: 1200px;height: 400px;}.inner{width: 1200px;height: 400px;position: relative;overflow: hidden;}.inner img{width:1200px;height: 400px;vertical-align: top}.inner ul {width: 1000%;position: absolute;list-style: none;left:0;top: 0;margin:0px;padding:0px;}.inner li{float: left;}ol {position: absolute;height: 20px;right: 20px;bottom: 12px;text-align: center;padding: 5px;}ol li{display: block;width: 20px;height: 20px;line-height: 20px;background-color: #fff;margin: 5px;cursor: pointer; }ol .current{background-color: red;}#arr{display: block;}#arr span{width: 30px;height: 40px;position: absolute;left: 14px;top: 156px;margin-top: -20px;background: #fff;cursor: pointer;line-height: 40px;text-align: center;font-weight: bold;font-family: '黑体';font-size: 30px;color: #000;opacity: 0.5;border: 1px solid #fff;}#arr #right {right: 18px;left: auto;}
.box01{ width:1140px; height:300px; padding:30px;}
.box01 .ner{ height:300px;}
.box01 .ner img{ float:left}
.box01 .wenz{width:645px;height: 206px;background: #eeeeee;padding: 20px 30px;float: left;margin-top: 25px;}
.box01 .wenz .tex{ font-size:30px; color:#da251c; height:45px; line-height:45px; margin-bottom:10px;}
.box01 .wenz p{ font-size:14px; line-height:25px;}
.box02{ height:305px; padding:30px;}
.box02 .wenzi{ width:550px; height:170px; float: left; margin-top:60px;}
.box02 .wenzi p{line-height:30px; font-size:16px; text-indent:2em;}
.box02{ height:305px;}
.box02 img{ float:left; margin-left:50px;}
.box3{ width:1140px; height:750px; padding:30px; }
.box3-tit{
height: 90px;
font-size: 50px;
font-weight: bolder;
width: 100%;
text-align: center;
line-height: 40px;
font-family:Verdana, Geneva, sans-serif;}
.box3-tit span{ color:#8aaa3d; font-size:16px; font-family: Arial, Helvetica, sans-serif; line-height:60px;}
.nero{ width:1140px; height:516px; margin-top:45px;}
.nero img{ float:left;}
.nero .jies01{ width:360px; height:242px; float:left; margin-left:30px;}
.nero .jies01 .tit{ color: #80b50f;
font-size: 18px;
font-weight: bold;
height:60px;
border-bottom: #b9b9b9 1px solid; margin-bottom:10px;}.nero .jies01 span{ color:#82a81d; font-weight:bold;}
.mar30{ margin-left:30px; margin-right:0px;}
.marl{ margin-left:0px !important;}
.mart30{ margin-top:30px;}
.coh{ color:#010101 !important;}
.foot{ height:90px; margin:0 auto; line-height:90px; text-align:center; font-size:16px; background:#da251c; margin-top:30px; color:#FFF;}
.banner{ height:200px;}
.titile{width:328px;height:70px;background:url(../img/bg01.jpg) no-repeat;margin:0 auto; margin-top: 20px;margin-bottom:20px;}
.titile h2{width:328px;
line-height: 70px;
font-size: 34px;
font-weight: normal;
text-align: center;}
.jies {width: 1140px;margin: 0 auto;background:#FFF;padding:20px;
}
.jies img{ display:block; margin:0 auto; margin-top:20px; margin-bottom:20px;}.jies p {text-indent: 2em;line-height: 25px;font-size: 14px;
}
.ncontu {width:1140px;
color:#464646;
height: 780px;
padding:30px;
}
.ncontu ul { }
.ncontu ul li {
width:340px;
height:300px;
float: left;
padding:20px;}
.xtit{
height: 50px;
line-height:50px;
text-align:center;
font-size:20px;
font-weight: bold;
}
.jjie{ color:#171717; font-size:14px;}
.bx1{ height: auto; overflow:hidden; }
.bx1 img{ float:left; margin-right:54px;}
.bx1 h2{ margin-top: 50px;
line-height: 50px;
font-weight: normal;
font-size: 30px;
color: #aa7648;
margin-bottom: 20px;}
.bx1 h2 a{color: #aa7648;}
.bx1 h2 a:hover{color:#1f5fa7}
.bx1 .shuom{ width:500px; float:left;}
.bx1 p{ text-indent:2em; line-height:33px; font-size:16px;}
.bx1 p a{ color:#000;}
.bx1 span{ height:50px; line-height:50px; font-size:16px; }
.bx1 span a{color:#F00;}
.bx2{ height: auto; overflow:hidden; }
.bx2 img{ float:right; margin-left:54px;}
.bx2 .shuom{ width:500px; float:right;}
.bx2 h2{ margin-top: 50px;
line-height: 50px;
font-weight: normal;
text-align:right;
font-size: 30px;
color: #aa7648;
margin-bottom: 20px;}
.bx2 h2 a{color: #aa7648;}
.bx2 p{ text-indent:2em;float:right; line-height:33px; font-size:16px;}
.bx2 p a{ color:#000;}
.bx2 p a:hover{color:#1f5fa7}
.bx2 span{ height:50px; line-height:50px; font-size:16px; }
.bx2 span a{color:#F00;}
.box12{ width:100%; height:696px; margin:0 auto; margin-top:30px;}
.box12-left{ width:400px; height:696px; float:left; background:url(../img/box12-1.jpg) no-repeat;}
.box12-right{width: 720px;
height: 600px;
float: left;
}
.box12-tit span{ color:#8aaa3d; font-size:16px; font-family: Arial, Helvetica, sans-serif; line-height:60px;}
.box12-js{ width:695px; height:auto;margin:0 auto; overflow:hidden; margin-top:45px; text-align:center; line-height:30px; margin-bottom:40px;}
.login{ width:770px; height:200px; margin:0 auto; }
.login input{ width:330px; height:49px; border:#cecccc 1px solid; float:left; margin-right:30px; margin-bottom:20px; padding-left:30px; font-size:16px;}
.l-anniu {width: 150px;height: 55px;background: #da251c;text-align: center;line-height: 50px;font-size: 14px;color: #FFF;margin: 0 auto;margin-top: 45px;margin-bottom: 97px;
}
.l-liuyan {width: 520px;margin: 0 auto;
}
.l-liuyan input{ width: 330px;
height: 30px;
border: #cecccc 1px solid;
float: left;
margin-right: 30px;
margin-bottom: 20px;
padding-left: 30px;
font-size: 16px;
float: left;}
.l-liuyan span{ float: left;
line-height: 30px;
font-size: 18px;
width: 120px;
}
.box5-js {width: 695px;height: auto;margin: 0 auto;margin-top: 0px;margin-bottom: 0px;overflow: hidden;margin-top: 45px;text-align: center;line-height: 30px;margin-bottom: 40px;
}
.yanxi{ width:1140px; margin:0 auto; margin:30px; padding-bottom:80px;}
.yanxi h2{ height:50px; line-height:50px; font-size:24px; margin-bottom:45px; text-align:center;}
.yanxi .neir{ width:1140px;
}
.yanxi .neir img{ float:right; margin-left:35px;}
.yanxi .neir p{ text-indent:2em; line-height:30px; margin-bottom:20px; font-size:16px;}
.meis{ width:1140px; height:300px;}
.meis img{ float:left; margin:20px 100px;}
.fydbx1{ width:1140px; height:300px; margin:30px;}
.fydbx1 img{ margin-right:30px; float:left;}
.fydbx1 h2{ line-height:45px; font-size:24px; margin-bottom:10px; font-weight:normal;}
.fydbx1 p{ line-height:30px; text-indent:2em; font-size:16px;}
.ccbx2{ width:1140px; height:290px; margin:0 auto; margin:30px;}
.ccbx2 img{ margin-left:30px; float:right;}
.ccbx2 p{ line-height: 30px;
text-indent: 2em;
font-size: 16px;}
五、🎁更多源码
1.如果我的博客对你有帮助 请 “👍点赞” “✍️评论” “💙收藏” 一键三连哦!
2.💗【👇🏻👇🏻👇🏻🉑关注我| 获取更多源码】 带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、等!
📣以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
