📂文章目录

一、👨‍🎓网站题目

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


二、✍️网站描述

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

👨‍🎓静态网站的编写主要是用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 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="keywords" content="" /><meta name="description" content="" /><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title>奶茶 </title><link href="css/style1.css" rel="stylesheet" type="text/css" media="screen" /><style type="text/css"><!--.STYLE1 {font-family: "宋体"}-->#container{  position:relative;  height:149px;  overflow:hidden;  margin-top:10px;  width: 600px;}#message , #message_copymsgid{margin:0; padding:0px;}#container ul{overflow:hidden;clear:both;height:149px;}#container li{float:left;text-align:center;padding:0; margin-left:27px; margin-top:7px; height:142px; display:inline;}#container li img{width:128px;height:110px;margin-bottom:3px;padding:2px;border:1px solid #ddd;}#container li a { display:inline-block; height:140px; cursor:pointer;}#container li a:hover {display:inline-block; height:140px; cursor:pointer; color:#00a4eb; text-decoration:none;}</style><script type="text/javascript" language="javascript" src="js/scrollver.js"></script><script type="text/javascript" language="javascript"><!--function init_Scroll(){     var scrollPics = new scrollVertical('container','message','ul');         scrollPics.speed = 4000;         scrollPics.isPause = true;      var timer_start = setTimeout(function(){clearTimeout(timer_start);scrollPics.isPause = false;},2000);     Event.addEvent(scrollPics.scrollArea,"mouseover",function(){scrollPics.isPause = true;});     Event.addEvent(scrollPics.scrollArea,"mouseout",function(){scrollPics.isPause = false;});}Event.addEvent(window,'load',init_Scroll);function MM_controlSound(x, _sndObj,) { //v3.0  var i, method = "", sndObj = eval(_sndObj);  if (sndObj != null) {    if (navigator.appName == 'Netscape') method = "play";    else {      if (window.MM_WMP == null) {        window.MM_WMP = false;        for(i in sndObj) if (i == "ActiveMovie") {          window.MM_WMP = true; break;      } }      if (window.MM_WMP) method = "play";      else if (sndObj.FileName) method = "run";  } }  if (method) eval(_sndObj+"."+method+"()");  else window.location = sndFile;}//--></script></head><body onload="MM_controlSound('play','document.CS1447324054703','music/1.mp3')"><div id="wrapper">  <div id="menu">    <ul>      <li class="current_page_item"><a href="index.html">首页</a></li>          <li><a href="xgcp.html">相关产品</a></li>     <li><a href="cd.html">奶茶 产地</a></li>   <li><a href="zf.html">奶茶 做法</a></li>     <li><a href="gezhong.html">各种奶茶 </a></li>      <li><a href="ly.html">与我联系</a></li>    </ul>  </div>  <div id="header"><span style="padding:0px 0 0px 0;width: 960px; border:0px solid #bddbf5;background: url(e/images/banner/banner.jpg) no-repeat 0px 0px;">    <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='980' height='250'>      <param name='movie' value='flash/swf3.swf' />      <param name='quality' value='high' />      <param name='wmode' value='transparent'/>      <embed src='flash/swf3.swf' quality='high' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  width='980' height='250'> </embed>    </object>  </span></div>  <div id="page">    <div id="page-bgtop">      <div id="page-bgbtm">        <div id="content">          <div class="post">            <h1><a href="#"><img src="images/daohang.jpg" alt="" width="920" height="29" /></a> </h1>            <p class="meta"><span class="posted"><a href="#"></a></span></p>            <div style="clear: both;"> </div>            <div class="entry">              <table width="100%" border="0" cellspacing="0" cellpadding="0">                <tr>                  <td width="452"><p>    奶茶 原为中国北方游牧民族的日常饮品,至今最少已有千年历史。自元朝起传遍世界各地,目前在中国大陆、台湾、香港、澳门,也门,中亚国家,印度,英国,新加坡,以及马来西亚等世界各地都有奶茶 的芳香。如印度奶茶 ,以加入玛萨拉的特殊香料闻名;香港奶茶 则以丝袜奶茶 著称,台湾的珍珠奶茶 也独具特色。奶茶 兼具牛奶和茶的双重营养,是家常美食之一,风行世界。奶茶 品种包括了奶茶 粉, 冰奶茶 ,热奶茶 等。内蒙古的奶茶 千百年来从未改变,至今仍然是日常饮用及待客的必备饮料。</p>                    <p> </p>                    <p> </p>                    <p> </p>                    <p><span class="links"><a href="#"><br />                    查看全文</a>    |  产品系列<a href="#"></a> 门店介绍 ┆ 会员专区 ┆ 免费试吃 ┆ 加入我们 </span></p></td>                  <td width="468" align="right" valign="top" class="ziti"><table width="450" border="0" cellspacing="0" cellpadding="0">                    <tr>                      <td><div id="www_qpsh_com" style="overflow:hidden;height:192px;width:450px;color:#ff0000">                        <table align="left" cellpadding="0" cellspace="0" border="0">                          <tr>                            <td id="www_qpsh_com1" valign="top"><table border="0" cellpadding="0" cellspacing="0">                              <tr>                                <td><img border="0" src="images/1.jpg" width="200" height="192" /></td>                                <td>   </td>                                <td><img border="0" src="images/2.jpg" width="200" height="192" /></td>                                <td>   </td>                                <td><img border="0" src="images/3.jpg" width="200" height="192" /></td>                                <td>   </td>                                <td><img border="0" src="images/4.jpg" width="200" height="192" /></td>                                <td>   </td>                                <td><img border="0" src="images/5.jpg" width="200" height="192" /></td>                                <td>   </td>                                <td><img border="0" src="images/6.jpg" width="200" height="192" /></td>                                <td>   </td>                                <td><img border="0" src="images/7.jpg" width="200" height="192" /></td>                                <td>   </td>                                <td><img border="0" src="images/8.jpg" width="200" height="192" /></td>                                <td>   </td>                              </tr>                            </table></td>                            <td id="www_qpsh_com2" valign="top"></td>                          </tr>                        </table>                      </div>                            <script type="text/javascript">var speed=10  www_qpsh_com2.innerHTML=www_qpsh_com1.innerHTML  function Marquee(){  if(www_qpsh_com2.offsetWidth-www_qpsh_com.scrollLeft<0)  www_qpsh_com.scrollLeft-=www_qpsh_com1.offsetWidth  else{  www_qpsh_com.scrollLeft++  }  }  var MyMar=setInterval(Marquee,speed)  www_qpsh_com.onmouseover=function() {clearInterval(MyMar)}  www_qpsh_com.onmouseout=function() {MyMar=setInterval(Marquee,speed)}</script></td>                    </tr>                  </table></td>                </tr>              </table>            </div>          </div>        </div>        <div style="clear: both;"> </div>      </div>    </div>  </div></div><div id="footer">  <p>奶茶 网站<a href="#">504741989@qq.com</a></p></div><EMBED NAME='CS1447324054703' SRC='music/1.mp3' LOOP=false AUTOSTART=false MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0></EMBED></body></html>

💒CSS样式代码

body {  margin: 0;  padding: 0;  background: #F1F1F1 url(../images/img01.gif) repeat-x left top;  font-family: "΢���ź�";  font-size: 12px;  color: #787878;}h1, h2, h3 {  margin: 0;   padding: 0;  font-weight: normal;  font-family: "΢���ź�";  color: #023848;}h1 {  font-size: 2em;}h2 {  font-size: 2.4em;}h3 {  font-size: 1.6em;}p, ul, ol {  margin-top: 0;  line-height: 180%;}ul, ol {}a {  text-decoration: none;  color: #4486C7;}a:hover {}#wrapper {  width: 980px;  margin: 0 auto;  padding: 0;}#header {  width: 980px;  height: 280px;  margin: 0 auto;  padding: 0px;  background: url(../images/img06.gif) no-repeat left top;}

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

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