👨🎓静态网站的编写主要是用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结构代码🧱
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<title>home</title>
<link rel="stylesheet" type="text/css" href="css/reset.css"/>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/js_z.js"></script>
<link rel="stylesheet" type="text/css" href="css/flexslider.css">
<script type="text/javascript" src="js/jquery.flexslider.js"></script>
<!--3d滚动-->
<link rel="stylesheet" type="text/css" href="css/style.css"><script type="text/javascript" src="js/jquery.roundabout-1.0.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<!--3d滚动-->
<script type="text/javascript" src="js/main.js"></script>
<link rel="stylesheet" type="text/css" href="css/thems.css">
<link rel="stylesheet" type="text/css" href="css/responsive.css">
<script type="text/javascript">
$(document).ready(function(){
$('#featured-area ul').roundabout({
easing: 'easeOutInCirc',
duration: 600
});
});
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide"
});
});
</script>
</head>
<body class="i_body">
<!--头部-->
<div class="header">
<div class="head_bg"> </div>
<div class="head clearfix">
<div class="logo"><a href=""><img src="picture/logo.png" alt="黑茶"/></a></div>
<ul class="nav clearfix">
<li class="now"><a href="index.html">首页<span>HOME</span></a></li>
<li><a href="about.html">关于我们<span>ABOUT</span></a></li>
<li><a href="product.html">产品简介<span>PRODUCT</span></a></li>
<li><a href="join.html">加盟说明<span>JOIN</span></a></li>
<li><a href="jstore.html">门店资讯<span>JSTORE</span></a></li>
<li><a href="news.html">新闻中心<span>NEWS</span></a></li>
<li><a href="contact.html">联系我们<span>CONTACT</span></a></li>
</ul>
<div class="nav_m">
<span class="n_icon"> </span>
<ul>
<li class="now"><a href="index.html">首页<span>HOME</span></a></li>
<li><a href="about.html">关于我们<span>ABOUT</span></a></li>
<li><a href="product.html">产品简介<span>PRODUCT</span></a></li>
<li><a href="join.html">加盟说明<span>JOIN</span></a></li>
<li><a href="jstore.html">门店资讯<span>JSTORE</span></a></li>
<li><a href="news.html">新闻中心<span>NEWS</span></a></li>
<li><a href="contact.html">联系我们<span>CONTACT</span></a></li>
</ul>
</div>
</div>
</div>
<!--头部-->
<!--幻灯片-->
<div class="banner">
<div class="slider slider_pc">
<div class="flexslider">
<ul class="slides">
<li>
<img src="picture/banner.jpg" alt="" />
</li>
<li>
<img src="picture/banner.jpg" alt="" />
</li>
<li>
<img src="picture/banner.jpg" alt="" />
</li>
</ul>
</div>
</div>
<div class="slider slider_sj">
<div class="flexslider">
<ul class="slides">
<li>
<img src="picture/shouji.jpg" alt="" />
</li>
<li>
<img src="picture/shouji.jpg" alt="" />
</li>
<li>
<img src="picture/shouji.jpg" alt="" />
</li>
</ul>
</div>
</div>
</div>
<!--幻灯片-->
<div class="i_box gy">
<div class="title"><img src="picture/n_1.png" alt=""/></div>
<div class="gy_m">
<div id="featured-area">
<ul>
<li><a href=""><img src="picture/pic3.png" alt=""/></a></li>
<li><a href=""><img src="picture/pic3.png" alt=""/></a></li>
<li><a href=""><img src="picture/pic3.png" alt=""/></a></li>
<li><a href=""><img src="picture/pic3.png" alt=""/></a></li>
</ul>
</div>
<div class="gy_a"><span>{ 黑茶店铺 }</span></div>
<div class="gy_b">
<div class="line"> </div>
<p>主要经营泡沫茶饮,<br/>一直坚持“新鲜、自然、无负担”的健康理念</p>
</div>
<div class="gy_c">
<div class="gy_cm">以中国六大茶系之一——黑茶而命名,而我们的招牌黑茶是以产品的独特配方和颜色取名。</div>
</div>
</div>
</div>
<div class="i_box i_pro">
<div class="bg"><img src="picture/bg.png" alt=""/></div>
<div class="title"><img src="picture/n_2.png" alt=""/></div>
<div class="i_pro_m">
<div class="pro_m_ctn pro_ma">
<h5><a href=""><span>青桔</span>柠檬</a></h5>
<p>新鲜柠檬片的清新与新鲜青桔的酸甜,即解渴又回味无穷的最佳健康饮品</p>
</div>
<div class="pro_m_ctn pro_mb">
<h5><a href="">冰<span>摩卡</span>咖啡</a></h5>
<p>意式浓缩咖啡与巧克力酱结合,顺滑绵密的口感令人无法停止</p>
</div>
<div class="pro_m_ctn pro_mc">
<h5><a href=""><span>红豆</span>椰露</a></h5>
<p>特调冰凉的椰奶中加入颗粒饱满的蜜豆,为您奉献一杯经典的海岛椰露</p>
</div>
<div class="pro_m_ctn pro_md">
<h5><a href=""><span>招牌</span>黑茶</a></h5>
<p>口感清新甘甜,又具传统黑茶的醇和口感,是一款具有独特的台湾风味茶饮</p>
</div>
<div class="tu"><img src="picture/pic2.png" alt=""/></div>
</div>
<div class="xl">
<ul class="xl_m clearfix">
<li><img src="picture/pic3.png" alt=""/></li>
<li><img src="picture/pic3.png" alt=""/></li>
<li><img src="picture/pic5.png" alt=""/></li>
<li><img src="picture/pic6.png" alt=""/></li>
</ul>
<div class="xl_a">
<div class="xl_a1">选料<span>用心,</span></div>
<p>呈现给每一位顾客一杯美味舒心、健康、高品质的茶饮。</p>
</div>
</div>
</div>
<div class="space_hx"> </div>
<div class="dp">
<div class="bg"><img src="picture/bg_b.png" alt=""/></div>
<div class="title"><img src="picture/n_6.png" alt=""/></div>
<ul class="dp_l clearfix">
<li class="one">
<div class="tu"><img src="picture/pic7.png" alt=""/></div>
<div class="wen">
<p class="py">XIA RI BING GUO CHA</p>
<div class="name">夏日<em>水果茶</em></div>
<div class="des">
<p>这杯果香四溢的水果茶,苹果,菠萝,西瓜,青桔,</p>
<p>柠檬。来上一杯,让自己的精神</p>
<p>能够在茶香中放松。</p>
</div>
</div>
</li>
<li class="two">
<div class="tu"><img src="picture/pic7.png" alt=""/></div>
<div class="wen">
<p class="py">MA LI SU</p>
<div class="name">玛丽<em>苏</em></div>
<div class="des">
<p>采用产自印度红茶作为基底,再添加从法国</p>
<p>进口的黑露田,调制出口感清新甘甜,</p>
<p>又具传统黑茶的醇和口感</p>
</div>
</div>
</li>
<li class="three">
<div class="tu"><img src="picture/pic7.png" alt=""/></div>
<div class="wen">
<p class="py">HEI CHA</p>
<div class="name">黑<em>茶</em></div>
<div class="des">
<p>采用产自印度红茶作为基底,再添加从法国</p>
<p>进口的黑露田,调制出口感清新甘甜,</p>
<p>又具传统黑茶的醇和口感</p>
</div>
</div>
</li>
<li class="four">
<div class="tu"><img src="picture/pic7.png" alt=""/></div>
<div class="wen">
<p class="py">QING JU NING MENG</p>
<div class="name">青桔<em>柠檬</em></div>
<div class="des">
<p>青桔与柠檬的碰撞!</p>
<p>酸甜滋味加上茶香,全新体验刺激你的味蕾</p>
<p>果香清甜,点缀你的夏天</p>
</div>
</div>
</li>
</ul>
</div>
<div class="space_hx"> </div>
<div class="i_box md">
<div class="bg"><img src="picture/bg_c.png" alt=""/></div>
<div class="title"><img src="picture/n_3.png" alt=""/></div>
<div class="md_m">
<div class="dm_ma"><img src="picture/pic5.png" alt=""/></div>
<div class="dm_mb"><img src="picture/pic5.png" alt=""/></div>
<div class="dm_mc"><img src="picture/pic5.png" alt=""/></div>
<div class="dm_md"><img src="picture/pic5.png" alt=""/></div>
</div>
</div>
<div class="space_hx"> </div>
<div class="i_box hz">
<div class="title"><img src="picture/n_4.png" alt=""/></div>
<dl class="hz_m clearfix">
<dt><img src="picture/pic6.jpg" alt=""/></dt>
<dd>
<div class="title_a">
加入黑茶<em>JOIN US</em>
</div>
<div class="dd_m">
<div class="dd_ml">
<p>年满18周岁的合法公民,具备一定管理、协调与社交能力。</p>
<p>对餐饮行业具有经营热诚,认同“黑茶”品牌、产品、经营理念与企业文化。</p>
<p>愿意遵守公司管理章程和特许经营理念。</p>
<p>店址使用面积不低于50平方。</p>
<p>必须采用公司规定的统一配送的物料,严格遵守公司规定的产品配方要求。</p>
<p>认可加盟制度,配合总部的工作,听取合理的意见。信任总部的安排和指导,保持信息互通。</p>
<p>接受公司的管理,参加培训。通过「服务标准培训」及「产品技术指导」后才可经营
能自觉维护【黑茶】品牌形象,具有良好的投资心态和进取意识。</p>
</div>
<ul class="dd_mr clearfix">
<li><a href="">加盟条件</a></li>
<li><a href="">加盟优势</a></li>
<li><a href="">加盟流程</a></li>
<li><a href="">申请加盟表</a></li>
</ul>
</div>
</dd>
</dl>
</div>
<div class="space_hx"> </div>
<div class="i_box lx">
<div class="title"><img src="picture/n_5.png" alt=""/></div>
<div class="lx_m clearfix">
<a href=""><img src="picture/icon6.png" alt=""/></a>
<p>加盟热线:XXX</p>
<div class="if_nav">
<a href="">关于我们</a>
<a href="">联系我们</a>
<a href="">在线留言</a>
<a href="">加入我们</a>
<a href="">门店资讯</a>
</div>
</div>
</div>
<div class="space_hx"> </div>
<div class="bq">Copyright © 2007-2020 heicha.com All Rights Reserved</div>
<script language="javascript">
$(function(){
})
</script>
</body>
</html>
CSS样式代码💒
/* Browser Resets */
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;}
/* FlexSlider Necessary Styles
*********************************/
.flexslider {margin: 0; padding: 0;}
.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {width: 100%; display: block;}
.flex-pauseplay span {text-transform: capitalize;}
/* Clearfix for the .slides element */
.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
html[xmlns] .slides {display: block;}
* html .slides {height: 1%;}
/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
* include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block;}
/* FlexSlider Default Theme
*********************************/
.flexslider {margin:0px; position: relative; zoom: 1;}
.flex-viewport {max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;}
.loading .flex-viewport {max-height: 300px;}
.flexslider .slides {zoom: 1;}
.carousel li {margin-right: 5px}
/* Direction Nav */
.flex-direction-nav {*height: 0;}
.flex-direction-nav a {width:21px; height:42px; margin:0; display: block; background:url(../images/icon2.png) no-repeat; position: absolute; top: 50%; z-index: 10; cursor: pointer; text-indent: -9999px; opacity: 1;}
.flex-direction-nav .flex-next { background-position:-21px -42px; right: 3px; }
.flex-direction-nav .flex-prev {background-position:0 -42px;left:3px;}
.flexslider .flex-next:hover {opacity: 0.8; right: 3px; background-position:-21px 0px;}
.flexslider .flex-prev:hover {opacity: 0.8; left: 3px;background-position:0px 0px;}
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 1;}
.flex-direction-nav .flex-disabled {opacity: .3!important; filter:alpha(opacity=30); cursor: default;}
/* Control Nav */
.flex-control-nav {width: 100%; position: absolute; bottom:0px; text-align: center; height:32px; background:url(../images/bg_a.png) repeat;}
.flex-control-nav li {margin: 10px 4px; display: inline-block; zoom: 1; *display: inline;}
.flex-control-paging li a {width: 10px; height: 10px; display: block; background: #fff; cursor: pointer; text-indent: -9999px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -o-border-radius: 20px; border-radius: 20px;}
.flex-control-paging li a:hover { background:#D80000;}
.flex-control-paging li a.flex-active { background:#D80000; cursor: default; }
.flex-control-thumbs {margin: 5px 0 0; position: static; overflow: hidden;}
.flex-control-thumbs li {width: 25%; float: left; margin: 0;}
.flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;}
.flex-control-thumbs img:hover {opacity: 1;}
.flex-control-thumbs .flex-active {opacity: 1; cursor: default;}
@media screen and (max-width: 860px) {
.flex-direction-nav .flex-prev {opacity: 1; left: 0;}
.flex-direction-nav .flex-next {opacity: 1; right: 0;}
}
八、更多干货🎁
1.如果我的博客对你有帮助、如果你喜欢我的博客内容,请 “👍点赞” “✍️评论” “💙收藏”
一键三连哦!
2.💗【👇🏻👇🏻👇🏻关注我| 获取更多源码 | 优质文章】
带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!
3.以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻🔥