👨🎓静态网站的编写主要是用HTML DIV+CSS JS等来完成页面的排版设计👩🎓,常用的网页设计软件有Dreamweaver、EditPlus、HBuilderX、VScode 、Webstorm、Animate等等,用的最多的还是DW,当然不同软件写出的前端Html5代码都是一致的,本网页适合修改成为各种类型的产品展示网页,比如美食、旅游、摄影、电影、音乐等等多种主题,希望对大家有所帮助。
🎀 精彩专栏推荐👇🏻👇🏻👇🏻
❤ 【作者主页——🔥获取更多优质源码】
❤ 【学习资料/简历模板/面试资料/ 网站设计与制作】
❤ 【web前端期末大作业——🔥🔥毕设项目精品实战案例】
@[TOC](文章目录📂)
一、网站题目👨🎓
🥧 美食网页介绍、🍰甜品蛋糕、🦐地方美食小吃文化、🍺餐饮文化、等网站的设计与制作。
二、网站描述✍️
🍧美食主题网站 主要对各种美食进行展示,让浏览者清晰地了解到各种美食的详细信息,便于浏览者进行选择。该模块的左侧有个美食分类,用户可以选择自己喜欢的种类,当点击种类后,就会在右侧出现该分类下的各种美食,用户可以点击自己感兴趣的食品,从而看到它的具体信息。它的具体信息包括配料、产地及它的一些功能,使用户对该食品有着全面的认识。
三、网站介绍📚
📔网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。
📓网站程序方面:计划采用最新的网页编程语言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 Login</p> </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>
复制
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.💗【👇🏻👇🏻👇🏻关注我| 获取更多源码 | 优质文章】
带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!
3.
以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻💬