200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > HTML+CSS美食静态网页设计——简单牛排美食餐饮(9个页面)公司网站模板企业网站实现

HTML+CSS美食静态网页设计——简单牛排美食餐饮(9个页面)公司网站模板企业网站实现

时间:2024-04-01 20:31:31

相关推荐

HTML+CSS美食静态网页设计——简单牛排美食餐饮(9个页面)公司网站模板企业网站实现

👨‍🎓静态网站的编写主要是用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文件包含:其中index.html是首页、其他html为二级页面;

(2)📑 css文件包含:css全部页面样式,文字滚动, 图片放大等;

(3)📄 js文件包含:js实现动态轮播特效, 表单提交, 点击事件等等(个别网页中运用到js代码)。

四、网站效果🌐

五、代码实现 🪓

HTML结构代码🧱

<!DOCTYPE html><html><head><meta charset="UTF-8"><!-- 优先使用 IE 最新版本和 Chrome --><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><title>首页</title><link rel="stylesheet" type="text/css" href="css/common.css"/><link rel="stylesheet" type="text/css" href="css/style.css"/></head><body><div class="clearfix nav"><a class="logo" href="javascript:;"></a><ul class="clearfix nav-wrap"><li><a class="nav-item nav-active" href="index.html">首页</a></li><li><a class="nav-item" href="pinpai.html">品牌故事</a></li><li><a class="nav-item" href="meishi.html">美食系列</a></li><li><a class="nav-item" href="shop.html">店面展示</a></li><li><a class="nav-item" href="news.html">新闻资讯</a></li><li><a class="nav-item" href="about-us.html">关于我们</a></li></ul></div><div id="container"><div id="buttons"><span index="1" class="on"></span><span index="2"></span><span index="3"></span></div><a href="javascript:;" id="prev" class="arrow"><img src="img/l.png"/></a><a href="javascript:;" id="next" class="arrow"><img src="img/r.png"/></a></div><div class="new-wrap"><p class="newfood-tit">新品推荐</p><div class="newfood-box clearfix" id="newfood-table"><ul class="newfood-wrap clearfix newfood-show"><li class="newfood-item newfood-right newfood-li1"><a href="meishi-con.html" class="newfood-p1">茶漱海鲜汤</a></li><li class="newfood-item newfood-right newfood-li2"><a href="meishi-con.html" class="newfood-p2">玉米海螺沟</a></li><li class="newfood-item newfood-right newfood-li3"><a href="meishi-con.html" class="newfood-p3">芝士蛋糕卷</a></li><li class="newfood-item newfood-li4"><a href="meishi-con.html" class="newfood-p4">芝士大虾</a></li><li class="newfood-item newfood-right newfood-li5"><a href="meishi-con.html" class="newfood-p5">西冷牛排</a></li><li class="newfood-item newfood-right newfood-li6"><a href="meishi-con.html" class="newfood-p6">草莓布丁杯</a></li><li class="newfood-item newfood-right newfood-li7"><a href="meishi-con.html" class="newfood-p7">黑椒牛排</a></li><li class="newfood-item newfood-li8"><a href="meishi-con.html" class="newfood-p8">茶漱海鲜汤</a></li></ul><ul class="newfood-wrap clearfix"><li class="newfood-item newfood-right newfood-li5"><a href="meishi-con.html" class="newfood-p5">西冷牛排</a></li><li class="newfood-item newfood-right newfood-li6"><a href="meishi-con.html" class="newfood-p6">草莓布丁杯</a></li><li class="newfood-item newfood-right newfood-li7"><a href="meishi-con.html" class="newfood-p7">黑椒牛排</a></li><li class="newfood-item newfood-li8"><a href="meishi-con.html" class="newfood-p8">茶漱海鲜汤</a></li><li class="newfood-item newfood-right newfood-li1"><a href="meishi-con.html" class="newfood-p1">茶漱海鲜汤</a></li><li class="newfood-item newfood-right newfood-li2"><a href="meishi-con.html" class="newfood-p2">玉米海螺沟</a></li><li class="newfood-item newfood-right newfood-li3"><a href="meishi-con.html" class="newfood-p3">芝士蛋糕卷</a></li><li class="newfood-item newfood-li4"><a href="meishi-con.html" class="newfood-p4">芝士大虾</a></li></ul><ul class="newfood-wrap clearfix"><li class="newfood-item newfood-right newfood-li3"><a href="meishi-con.html" class="newfood-p3">芝士蛋糕卷</a></li><li class="newfood-item newfood-li4"><a href="meishi-con.html" class="newfood-p4">芝士大虾</a></li><li class="newfood-item newfood-right newfood-li1"><a href="meishi-con.html" class="newfood-p1">茶漱海鲜汤</a></li><li class="newfood-item newfood-right newfood-li2"><a href="meishi-con.html" class="newfood-p2">玉米海螺沟</a></li><li class="newfood-item newfood-right newfood-li7"><a href="meishi-con.html" class="newfood-p7">黑椒牛排</a></li><li class="newfood-item newfood-right newfood-li5"><a href="meishi-con.html" class="newfood-p5">西冷牛排</a></li><li class="newfood-item newfood-right newfood-li6"><a href="meishi-con.html" class="newfood-p6">草莓布丁杯</a></li><li class="newfood-item newfood-li8"><a href="meishi-con.html" class="newfood-p8">茶漱海鲜汤</a></li></ul></div><div class="clearfix" id="newfood-span"><span style="background: url(img/icon-2.png);"></span><span></span><span></span></div></div><div class="company-wrap"><p class="company-tit">公司简介</p><dl class="clearfix company-dl"><dt class="company-dt"><img src="img/pic1.png"/></dt><dd class="company-dd"><p>贵族食代牛排是昔日的台湾首富、台湾知名企业贵族食代集团董事长王永庆先生招待贵宾的知名私房料理。严选一头牛的第六至第八对肋骨这六块牛排。是以“一头牛仅供6客”的贵族食代牛排为招牌菜的中高价位直营连锁西餐厅,独具中国口味,全熟牛排,鲜嫩多汁,适合中国人口味,以菜色精致、好吃、服务好、风格高雅、管理专业着称。</p><p>何谓经典,可能就是在品鉴无数美食后,其绝妙的滋味仍旧不能被替代。再次品味时,仍能激起内心的波澜与感动。如此经典,我们将为您重新诠释。全新的摆盘,搭配特制爽口的配菜,全熟风味,您不可辜负的舌尖美味。</p><p>登陆大陆,截至目前,贵族食代牛排在上海、北京、深圳、广州、南京、武汉、成都、重庆等地已经有40余家直营店,成为高端连锁牛排的领导品牌。</p></dd></dl></div><div class="news-wrap"><p class="news-tit">新闻资讯</p><dl class="clearfix news-dl"><dt class="news-dt"><img src="img/pic2.jpg"/></dt><dd class="news-dd"><a href="news-con.html" class="news-link clearfix"><p class="link-tit">贵族食代牛排东莞厚街万达餐厅开业</p><p class="link-time">-09-28</p></a><a href="news-con.html" class="news-link clearfix"><p class="link-tit">贵族食代牛排无锡大成巷餐厅开业</p><p class="link-time">-09-23</p></a><a href="news-con.html" class="news-link clearfix"><p class="link-tit">贵族食代牛排武汉黄陂广场餐厅开业</p><p class="link-time">-09-20</p></a><a href="news-con.html" class="news-link clearfix"><p class="link-tit">贵族食代牛排福州永嘉天地餐厅开业</p><p class="link-time">-09-17</p></a><a href="news-con.html" class="news-link clearfix"><p class="link-tit">贵族食代牛排网络大学第一批“学霸”亮相</p><p class="link-time">-09-14</p></a><a href="news-con.html" class="news-link clearfix"><p class="link-tit">华南市场半年度餐厅经理营运会召开</p><p class="link-time">-09-05</p></a><a href="news-con.html" class="news-link clearfix"><p class="link-tit">浙江大区召开餐厅经理营运会议</p><p class="link-time">-09-23</p></a><a href="news-con.html" class="news-link clearfix"><p class="link-tit">8月15日 贵族食代牛排武汉武商众圆餐厅开业</p><p class="link-time">-09-15</p></a></dd></dl></div><div class="foot"><div class="foot-wrap"><p class="foot-tit">友情链接</p><ul class="foot-link clearfix"><li class="foot-pic"><a href="javascript:;"><img src="img/link6.png"/></a></li><li class="foot-pic"><a href="javascript:;"><img src="img/link5.png"/></a></li><li class="foot-pic"><a href="javascript:;"><img src="img/link4.png"/></a></li><li class="foot-pic"><a href="javascript:;"><img src="img/link3.png"/></a></li><li class="foot-pic"><a href="javascript:;"><img src="img/link2.png"/></a></li><li class="foot-pic"><a href="javascript:;"><img src="img/link1.png"/></a></li></ul><div class="copyright"><p>CopyRight©- All rigt rederved</p><p>版权所有:贵族食代牛排有限公司 来源:<a href="/" target="_blank">源码之家</a></p><p>ICP备案号:京ICP备16047255号-3本站信息由会员自主添加,如信息涉及隐私等,网站不承担任何责任!</p></div></div></div></body><!--jq调用--><script src="js/jquery-1.11.0.js" type="text/javascript"></script><script type="text/javascript">//导航当前项切换$(".nav-item").click(function(){$(this).parent("li").siblings().children().removeClass("nav-active");//点击对象的父级(li)的兄弟级(li)的子集(a)移除类$(this).addClass("nav-active");//给点击对象添加类});//新品推荐table切换var nSpan = document.getElementById("newfood-span");var newspan = nSpan.querySelectorAll("span");var oUl = document.getElementById("newfood-table");var uls = oUl.querySelectorAll("ul");var last=newspan[0];for(var i=0;i<newspan.length;i++){newspan[i].index=i; //给每一个按钮添加一个自定义属性,存储的是他们对应的索引值;newspan[i].onclick=function(){last.style.background="url(img/icon.png)"; //把上一次点击对象的背景更换掉uls[last.index].style.display="none"; //上一个对应的div,让他隐藏this.style.background="url(img/icon-2.png)"; //给当前点击的按钮添加背景uls[this.index].style.display="block"; //当前点击按钮对应的div显示last=this; //把上一次点击的对象更新成当前点击的对象};};</script></html>

CSS样式代码💒

@charset "utf-8";html{min-width: 1280px;}.nav{width: 1080px;margin: 0 auto;}.logo{display: block;background: url(../img/logo.png) no-repeat center;width: 234px;height: 80px;float: left;padding: 4px;}.nav-wrap{float: right;}.nav-wrap>li,.nav-item{float: left;line-height: 88px;width: 138px;text-align: center;color: #533336;font-size: 18px;}.nav-item:hover{background-color: #533336;color: #fff;}.nav-wrap .nav-active{background-color: #533336;color: #FFFFFF;}/*banner*/#container {border-top: 10px solid #533336;max-width: 1920px; height:500px; overflow: hidden; position: relative;background:url(../img/banner1.jpg) no-repeat 50% 0px;}#buttons {position: absolute; height: 10px; width: 100px; z-index: 2; bottom: 80px; left: 50%;margin-left: -36px;}#buttons span {cursor: pointer; float: left; border: 2px solid #fff; width: 18px; height: 18px; border-radius: 50%; background: #333; margin-right: 8px;}#buttons .on {background: #fff;}.arrow {cursor: pointer; display: none; line-height: 39px; text-align: center; font-size: 36px; font-weight: bold; width: 40px; height: 40px; position: absolute; z-index: 2; top: 50%; color: #fff;}

八、更多干货🎁

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

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

3.以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻🔥

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。