基于HTML美食餐饮文化项目的设计与实现 HTML+CSS上海美食介绍网页(8页)

大学生美食文化网站制作 简单餐饮文化网页设计成

一、网站题目>

 美食网页介绍、甜品蛋糕、地方美食小吃文化、餐饮文化、等网站的设计与制作。

二、网站描述>

美食主题网站 主要对各种美食进行展示,让浏览者清晰地了解到各种美食的详细信息,便于浏览者进行选择。该模块的左侧有个美食分类,用户可以选择自己喜欢的种类,当点击种类后,就会在右侧出现该分类下的各种美食,用户可以点击自己感兴趣的食品,从而看到它的具体信息。它的具体信息包括配料、产地及它的一些功能,使用户对该食品有着全面的认识。

静态网站的编写主要是用HTML DIV+CSS JS等来完成页面的排版设计,常用的网页设计软件有Dreamweaver、EditPlus、HBuilderX、VScode 、Webstorm、Animate等等,用的最多的还是DW,当然不同软件写出的前端Html5代码都是一致的,本网页适合修改成为各种类型的产品展示网页,比如美食、旅游、摄影、电影、音乐等等多种主题,希望对大家有所帮助。

三、网站介绍>

网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。

网站程序方面:计划采用最新的网页编程语言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 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"><!-- InstanceBegin template="/Templates/tp.dwt" codeOutsideHTMLIsLocked="false" --><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><!-- InstanceBeginEditable name="doctitle" --><title>无标题文档</title><!-- InstanceEndEditable --><link href="style/style.css" rel="external nofollow" rel="stylesheet" type="text/css" /></head><body><div id="head">   <div id="logo"><img src="images/logo.jpg" width="239" height="146" alt="logo" /></div>   <div id="back">     <table width="240" border="0" cellspacing="1" cellpadding="1">       <tr>         <td width="96">设为首页|</td>         <td width="96">加入收藏|</td>         <td width="96">联系我们</td>       </tr>     </table>   </div>  <div id="nav">  <ul>    <li class="first"><a href="index.html" rel="external nofollow" >首  页</a></li>     <li><a href="nowfood.html" rel="external nofollow" >当季美食</a></li>      <li><a href="vall.html" rel="external nofollow" >菜谱大全</a></li>       <li><a href="yinyang.html" rel="external nofollow" >营养饮食</a></li>        <li ><a href="1.html" rel="external nofollow" >食尚社区</a></li>  

 </ul>

  <a href="#" rel="external nofollow" >登陆</a>|<a href="zhuce.html" rel="external nofollow" >注册</a></div>  </div><!-- InstanceBeginEditable name="head" --><div id="mian"><div id="left"><div id="jies">生活中注意的饮食健康</div><img src="images/21.jpg" width="211" height="320" /><img src="images/22.jpg" width="205" height="330" /></div><div id="middle"><img src="images/333.jpg" width="540" height="684" /></div><div id="right"><img src="images/22.jpg" width="203" height="332" /><img src="images/26.jpg" width="203" height="351" /></div></div><!-- InstanceEndEditable --><div id="footer">版权所有|主页 |联系我们| 邮箱地址</div></body><!-- InstanceEnd --></html>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859

CSS样式代码

body {mar
body {margin: 0px;padding: 0px;background-color: #FFF;}#head {height: 146px;width: 966px;margin-right: auto;margin-left: auto;margin-bottom: 0px;background-color: #BF2C0A;}#mian {width: 964px;height: 700px;margin-right: auto;margin-left: auto;margin-top: 4px;background-color: #FFF;border-right-width: 1px;border-right-style: solid;border-right-color: #CCC;border-left-width: 1px;border-left-style: solid;border-left-color: #CCC;}#footer {width: 964px;margin-right: auto;margin-left: auto;height: 40px;text-align: center;padding-top: 10px;color: #FFF;letter-spacing: 2px;background-image: url(../images/footer.jpg);}#head #logo {height: 145px;width: 240px;float: left;}#head #back {float: left;width: 725px;height: 98px;background-image: url(../images/head1.jpg);background-repeat: repeat;margin-bottom: 0px;}#head #nav {float: left;width: 726px;background-color: #ed6857;background-image: url(../images/nav.jpg);background-repeat: repeat-x;line-height: 47px;font-size: 12px;color: #FFF;height: 47px;overflow: hidden;}#head #nav ul {height: 45px;float: left;margin-top: 0px;background-image: url(../images/nav.jpg);background-repeat: repeat-x;width: 609px;background-color: #ed6857;}#head #back table {float: right;margin-top: 50px;color: #910000;}#head #nav ul li {float: left;width: 110px;list-style-type: none;height: 45px;line-height: 45px;text-align: center;background-image: url(../images/nav.jpg);background-repeat: repeat-x;margin-left: 1px;color: #FFF;border-right-width: 1px;border-right-style: solid;border-right-color: #FFF;font-size: 14px;margin-top: 2px;}#head #nav a {color: #FFF;text-decoration: none;}#head #nav a:hover {color: #F00;text-decoration: underline;}#head #nav ul .first {border-left-width: 1px;border-left-style: solid;border-left-color: #FFF;}#mian #left {float: left;height: 680px;width: 200px;padding-top: 2px;}#mian #middle {float: left;height: 680px;width: 430px;margin-left: 15px;}#mian #left #jies {height: 25px;width: 195px;padding-top: 5px;padding-left: 5px;color: #666;font-size: 14px;background-color: #FFF;font-weight: bolder;}#mian #right {float: right;height: 680px;width: 200px;background-color: #CCC;}#mian #dding {background-color: #FFF;height: 100px;width: 966px;font-size: 36px;text-align: center;line-height: 100px;}#mian #dding a {color: #000;text-decoration: none;}#mian #dding a:hover {color: #F00;text-decoration: underline;}#mian1 {height: 1054px;width: 964px;margin-right: auto;margin-left: auto;}#mian .l {float: left;height: 700px;width: 320px;}#mian .l table tr td img {margin-left: 2px;}#mian center table {}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
gin: 0px;padding: 0px;background-color: #FFF;}#head {height: 146px;width: 966px;margin-right: auto;margin-left: auto;margin-bottom: 0px;background-color: #BF2C0A;}#mian {width: 964px;height: 700px;margin-right: auto;margin-left: auto;margin-top: 4px;background-color: #FFF;border-right-width: 1px;border-right-style: solid;border-right-color: #CCC;border-left-width: 1px;border-left-style: solid;border-left-color: #CCC;}#footer {width: 964px;margin-right: auto;margin-left: auto;height: 40px;text-align: center;padding-top: 10px;color: #FFF;letter-spacing: 2px;background-image: url(../images/footer.jpg);}#head #logo {height: 145px;width: 240px;float: left;}#head #back {float: left;width: 725px;height: 98px;background-image: url(../images/head1.jpg);background-repeat: repeat;margin-bottom: 0px;}#head #nav {float: left;width: 726px;background-color: #ed6857;background-image: url(../images/nav.jpg);background-repeat: repeat-x;line-height: 47px;font-size: 12px;color: #FFF;height: 47px;overflow: hidden;}#head #nav ul {height: 45px;float: left;margin-top: 0px;background-image: url(../images/nav.jpg);background-repeat: repeat-x;width: 609px;background-color: #ed6857;}#head #back table {float: right;margin-top: 50px;color: #910000;}#head #nav ul li {float: left;width: 110px;list-style-type: none;height: 45px;line-height: 45px;text-align: center;background-image: url(../images/nav.jpg);background-repeat: repeat-x;margin-left: 1px;color: #FFF;border-right-width: 1px;border-right-style: solid;border-right-color: #FFF;font-size: 14px;margin-top: 2px;}#head #nav a {color: #FFF;text-decoration: none;}#head #nav a:hover {color: #F00;text-decoration: underline;}#head #nav ul .first {border-left-width: 1px;border-left-style: solid;border-left-color: #FFF;}#mian #left {float: left;height: 680px;width: 200px;padding-top: 2px;}#mian #middle {float: left;height: 680px;width: 430px;margin-left: 15px;}#mian #left #jies {height: 25px;width: 195px;padding-top: 5px;padding-left: 5px;color: #666;font-size: 14px;background-color: #FFF;font-weight: bolder;}#mian #right {float: right;height: 680px;width: 200px;background-color: #CCC;}#mian #dding {background-color: #FFF;height: 100px;width: 966px;font-size: 36px;text-align: center;line-height: 100px;}#mian #dding a {color: #000;text-decoration: none;}#mian #dding a:hover {color: #F00;text-decoration: underline;}#mian1 {height: 1054px;width: 964px;margin-right: auto;margin-left: auto;}#mian .l {float: left;height: 700px;width: 320px;}#mian .l table tr td img {margin-left: 2px;}#mian center table {}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175

六、 如何让学习不再盲目>

很多刚入门编程的小白学习了基础语法,却不知道语法的用途,不知道如何加深映像,不知道如何提升自己,这个时候每天刷自主刷一些题就非常重要(百炼成神),可以去牛客网上的编程初学者入门训练。该专题为编程入门级别,适合刚学完语法的小白练习,题目涉及编程基础语法,基本结构等,每道题带有练习模式和考试模式,可还原考试模式进行模拟,也可通过练习模式进行练习。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值