javascript
Web前端开发技术课程大作业: 关于美食的HTML网页设计——HTML+CSS+JavaScript在线美食订餐网站html模板源码30个页面:
👨?🎓靜態網站的編寫主要是用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 http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="keywords" content=""> <meta name="description" content="mezz"> <meta name="author" content="mezz"> <link href="css/css.css" rel="stylesheet"> <link href="css/chosen.css" rel="stylesheet"> <!--[if lt IE 9]><link href="css/ie.css" rel="stylesheet" type="text/css" ><meta http-equiv="X-UA-Compatible" content="IE=8" > <![endif]--> <!--[if lte IE 6]><meta http-equiv="refresh" content="0;url=IE6/IE6.html"><![endif]--> <link href="favicon.ico" rel="SHORTCUT ICON"> <title>17素材·私廚 - 為你推薦遍布全球最新鮮,最與眾不同的頂級生活方式</title> </head> <body><div class="indexban" style="background-image:url(images/img1.jpg);"><div class="wrap"><a href="index.html" class="logo indent">logo</a><div class="medium-right"><a href="login.html">登陸</a><a href="reg.html">注冊</a><a href="#">發布我的飯局</a></div><div class="txt"><span class="hd">美食與生活的完美演繹</span><a href="#">早餐</a><a href="#">午餐</a><a href="#">晚餐</a><a href="#">一鍵搞定</a></div></div><div class="p1-hero-search-form"><div class="wrap clearfix"><form action="#" method="post" class="search_form clearfix"><div class="box-wrapper"><input type="text" class="input-large eat" autocomplete="off" id="eat" name="eat" placeholder="您想要吃什么?"><span id="enter_location_error_message" class="bad hide">請告訴我您要吃什么?</span></div><div class="box-wrapper"><select data-placeholder="地點" style="width:150px;" class="chosen-select-no-single" tabindex="9"><option>地點</option><option>地點</option></select></div><div class="box-wrapper bd0"><select data-placeholder="就餐人數" style="width:150px;" class="chosen-select-no-single" tabindex="9"><option>就餐人數</option><option>2人</option><option>2人</option></select></div><button type="submit" class="button search-button" id="submit_search">搜索</button></form><div class="hot-key fl">熱門搜索: <a href="active.html">早餐</a><a href="active.html">午餐</a><a href="active.html">晚餐</a><a href="active.html">西餐</a><a href="active.html">午餐</a><a href="active.html">西餐</a><a href="active.html">西餐</a></div></div></div></div><div class="wrap"><div class="row-space tc"><a href="active.html"><img src="images/txt1.png"></a></div><div class="Activity clearfix"><a href="#" class="item"><div class="img"><img src="upload/img1.jpg"></div><div class="txt">活動名稱</div></a><div class="item large fr"><div id="full-screen-slider"><ul id="slides"><li><a href="#" target="_blank"><img src="upload/img2.jpg"></a></li><li><a href="#" target="_blank"><img src="upload/img2.jpg"></a></li><li><a href="#" target="_blank"><img src="upload/img2.jpg"></a></li></ul></div></div></div><div class="Activity mt36 clearfix"><a href="#" class="item"><div class="img"><img src="upload/img3.jpg"></div><div class="txt" style="padding:10px 0">活動名稱<p class="f14">不管是跨洋過海還是跨城郊游,<br>Alice & Chris總是尋找著最本真最<br>當地化的體驗。</p></div></a><a href="#" class="item mid"><div class="img"><img src="upload/img4.jpg"></div><div class="txt">活動名稱</div></a><a href="#" class="item mid last"><div class="img"><img src="upload/img5.jpg"></div><div class="txt">活動名稱</div></a></div></div><div class="slideshow"><div class="m_banner"><div class="ban" style=" background-image:url(upload/img6.jpg);"></div><div class="ban" style=" background-image:url(upload/img6.jpg);"></div><a href="javascript:;" class="ico prev"></a><a href="javascript:;" class="ico next"></a></div></div><div class="community"><div class="row-space tc"><img src="images/txt2.png"></div><ul class="community-wrapper clearfix"><li><a href="#"><img src="upload/img7.jpg"></a></li><li><a href="#"><img src="upload/img8.jpg"></a></li><li><a href="#"><img src="upload/img9.jpg"></a></li><li><a href="#"><img src="upload/img10.jpg"></a></li></ul></div><!--foot--><div class="footmenu"><div class="wrap clearfix"><div class="item bd0"><h1 class="hd">產品理念</h1><ul><li><a href="#">食品安全</a></li><li><a href="#">訂購流程</a></li><li><a href="#">修改訂單</a></li><li><a href="#">冷鏈配送</a></li><li><a href="#">全程冷鏈</a></li></ul></div><div class="item"><h1 class="hd">產品理念</h1><ul><li><a href="#">食品安全</a></li><li><a href="#">訂購流程</a></li><li><a href="#">修改訂單</a></li><li><a href="#">冷鏈配送</a></li><li><a href="#">全程冷鏈</a></li></ul></div><div class="item"><h1 class="hd">產品理念</h1><ul><li><a href="#">食品安全</a></li><li><a href="#">訂購流程</a></li><li><a href="#">修改訂單</a></li><li><a href="#">冷鏈配送</a></li><li><a href="#">全程冷鏈</a></li></ul></div><div class="item"><h1 class="hd">產品理念</h1><ul><li><a href="#">食品安全</a></li><li><a href="#">訂購流程</a></li><li><a href="#">修改訂單</a></li><li><a href="#">冷鏈配送</a></li><li><a href="#">全程冷鏈</a></li></ul></div><div class="fr"><img src="images/img2.jpg"><img src="images/img3.jpg"></div></div><div class="gotop"></div></div><div class="foot tc">Copyright ? 2003-2015 17素材, All Rights Reserved</div> </body> <script src="js/jquery.js"></script> <script src="js/Action.js"></script><script src="js/jquery.jslides.js"></script><script src="js/index.js"></script><script src="js/chosen.jquery.js"></script> <script type="text/javascript">var config = {'.chosen-select-no-single' : {disable_search_threshold:10}}for (var selector in config) {$(selector).chosen(config[selector]);} </script> </html>CSS樣式代碼💒
/* @group Base */ .chosen-container {position: relative;display: inline-block;vertical-align: middle;font-size: 13px;zoom: 1;*display: inline;-webkit-user-select: none;-moz-user-select: none;user-select: none;margin-top:5px; } .chosen-container .chosen-drop {position: absolute;top: 100%;left: -9999px;z-index: 1010;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;width: 100%;border: 1px solid #b7b6b6;border-top: 0;background: #fff;box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); } .chosen-container.chosen-with-drop .chosen-drop {left: 0; } .chosen-container a {cursor: pointer; }/* @end */ /* @group Single Chosen */ .chosen-container-single .chosen-single {position: relative;display: block;overflow: hidden;padding: 0 0 0 8px;height: 25px;border: 1px solid #b7b6b6;background-color: #fff;color: #666;text-decoration: none;white-space: nowrap;line-height: 27px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px; } .chosen-container-single .chosen-default {color: #000; } .chosen-container-single .chosen-single span {display: block;overflow: hidden;/*margin-right: 26px;*/text-overflow: ellipsis;white-space: nowrap; } .chosen-container-single .chosen-single-with-deselect span {/*margin-right: 38px;*/ } .chosen-container-single .chosen-single abbr {position: absolute;top: 6px;right: 26px;display: block;width: 12px;height: 12px;background: -42px 1px no-repeat;font-size: 1px; } .chosen-container-single .chosen-single abbr:hover {/*background-position: -42px -10px;*/ } .chosen-container-single.chosen-disabled .chosen-single abbr:hover {/*background-position: -42px -10px;*/ } .chosen-container-single .chosen-single div {position: absolute;top: 0;right: 0px;display: block;width: 25px;height: 100%;border-left:1px solid #dadada; } .chosen-container-single .chosen-single div b {display: block;width: 100%;height: 100%;background: url(../images/bor.png) no-repeat center center; } .chosen-container-single .chosen-search {position: relative;z-index: 1010;margin: 0;padding: 3px 4px;white-space: nowrap; display:none; } .chosen-container-single .chosen-search input[type="text"] {-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;margin: 1px 0;padding: 4px 20px 4px 5px;width: 100%;height: auto;outline: 0;border: 0px solid #aaa;background: white no-repeat 100% -20px;background: no-repeat 100% -20px;font-size: 1em;font-family: sans-serif;line-height: normal;border-radius: 0; } .chosen-container-single .chosen-drop {margin-top: -1px;border-radius: 0 0 4px 4px;background-clip: padding-box; } .chosen-container-single.chosen-container-single-nosearch .chosen-search {position: absolute;left: -9999px; }/* @end */ /* @group Results */ .chosen-container .chosen-results {position: relative;overflow-x: hidden;overflow-y: auto;margin: 0 0 4px 0;padding: 0 0 0 0;max-height: 95px;-webkit-overflow-scrolling: touch;border-top:1px solid #b7b6b6 } .chosen-container .chosen-results li {display: none;margin: 0;padding: 5px 0 5px 8px;list-style: none;line-height: 20px;-webkit-touch-callout: none;color:#777;border-bottom:1px dotted #e3e3e3; } .chosen-container .chosen-results li.active-result {display: list-item;cursor: pointer; } .chosen-container .chosen-results li.disabled-result {display: list-item;color: #ccc;cursor: default;} .chosen-container .chosen-results li.highlighted {/*background-color: #3875d7;background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);*/ background:#f1f1f1;color: #474747; } .chosen-container .chosen-results li.no-results {display: list-item;background: #f4f4f4; } .chosen-container .chosen-results li.group-result {display: list-item;font-weight: bold;cursor: default; } .chosen-container .chosen-results li.group-option {padding-left: 15px; } .chosen-container .chosen-results li em {font-style: normal;text-decoration: underline; }/* @end */ /* @group Multi Chosen */ .chosen-container-multi .chosen-choices {position: relative;overflow: hidden;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;margin: 0;padding: 0;width: 100%;height: auto !important;height: 1%;border: 1px solid #eee;background-color: #fff;background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);cursor: text; } .chosen-container-multi .chosen-choices li {float: left;list-style: none; } .chosen-container-multi .chosen-choices li.search-field {margin: 0;padding: 0;white-space: nowrap; } .chosen-container-multi .chosen-choices li.search-field input[type="text"] {margin: 1px 0;padding: 5px;height: 15px;outline: 0;border: 0 !important;background: transparent !important;box-shadow: none;color: #666;font-size: 100%;font-family: sans-serif;line-height: normal;border-radius: 0; } .chosen-container-multi .chosen-choices li.search-field .default {color: #999; } .chosen-container-multi .chosen-choices li.search-choice {position: relative;margin: 3px 0 3px 5px;padding: 3px 20px 3px 5px;border: 1px solid #aaa;border-radius: 3px;background-color: #e4e4e4;background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);background-clip: padding-box;box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);color: #333;line-height: 13px;cursor: default; } .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {position: absolute;top: 4px;right: 3px;display: block;width: 12px;height: 12px;/* background: -42px 1px no-repeat;*/font-size: 1px; } .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {/*background-position: -42px -10px;*/ } .chosen-container-multi .chosen-choices li.search-choice-disabled {padding-right: 5px;border: 1px solid #eee;background-color: #e4e4e4;background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);color: #666; } .chosen-container-multi .chosen-choices li.search-choice-focus {background: #d4d4d4; } .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {/*background-position: -42px -10px;*/ } .chosen-container-multi .chosen-results {margin: 0;padding: 0; } .chosen-container-multi .chosen-drop .result-selected {display: list-item;color: #ccc;cursor: default; }/* @end */ /* @group Active */ .chosen-container-active .chosen-single {border: 1px solid #eee;/*box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);*/ } .chosen-container-active.chosen-with-drop .chosen-single {border: 1px solid #b7b6b6;-moz-border-radius-bottomright: 1px;border-bottom-right-radius: 1px;-moz-border-radius-bottomleft: 1px;border-bottom-left-radius: 1px;/*background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));background-image: -webkit-linear-gradient(#eeeeee 20%, #ffffff 80%);background-image: -moz-linear-gradient(#eeeeee 20%, #ffffff 80%);background-image: -o-linear-gradient(#eeeeee 20%, #ffffff 80%);background-image: linear-gradient(#eeeeee 20%, #ffffff 80%);*/background:#fff;box-shadow: 0 1px 0 #eee inset; } .chosen-container-active.chosen-with-drop .chosen-single div {background: transparent;} .chosen-container-active.chosen-with-drop .chosen-single div b {/*background-position: 0 0;*/} .chosen-container-active .chosen-choices {border: 1px solid #eee;box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);} .chosen-container-active .chosen-choices li.search-field input[type="text"] {color: #111 !important;}/* @end */ /* @group Disabled Support */ .chosen-disabled {opacity: 0.5 !important;cursor: default;} .chosen-disabled .chosen-single {cursor: default;} .chosen-disabled .chosen-choices .search-choice .search-choice-close {cursor: default;}/* @end */ /* @group Right to Left */ .chosen-rtl {text-align: right;} .chosen-rtl .chosen-single {overflow: visible; padding: 0 8px 0 0;} .chosen-rtl .chosen-single span { margin-right: 0; /*margin-left: 26px;*/ direction: rtl;} .chosen-rtl .chosen-single-with-deselect span {margin-left: 38px;} .chosen-rtl .chosen-single div {right: auto; left: 3px;} .chosen-rtl .chosen-single abbr { right: auto; left: 26px;} .chosen-rtl .chosen-choices li { float: right;} .chosen-rtl .chosen-choices li.search-field input[type="text"] { direction: rtl;} .chosen-rtl .chosen-choices li.search-choice { margin: 3px 5px 3px 0; padding: 3px 5px 3px 19px;} .chosen-rtl .chosen-choices li.search-choice .search-choice-close {right: auto; left: 4px;} .chosen-rtl.chosen-container-single-nosearch .chosen-search,.chosen-rtl .chosen-drop { left: 9999px;} .chosen-rtl.chosen-container-single .chosen-results { margin: 0 0 4px 4px; padding: 0 4px 0 0;} .chosen-rtl .chosen-results li.group-option {padding-right: 15px; padding-left: 0;} .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div { border-right: none;} .chosen-rtl .chosen-search input[type="text"] {padding: 4px 5px 4px 20px;/*background: white no-repeat -30px -20px;background: no-repeat -30px -20px;*/direction: rtl; } .chosen-rtl.chosen-container-single .chosen-single div b {/*background-position: 0 0;*/} .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b { /*background-position: 0 0;*/}/* @end */ /* @group Retina compatibility */ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {.chosen-rtl .chosen-search input[type="text"],.chosen-container-single .chosen-single abbr,.chosen-container-single .chosen-single div b,.chosen-container-single .chosen-search input[type="text"],.chosen-container-multi .chosen-choices .search-choice .search-choice-close,.chosen-container .chosen-results-scroll-down span,.chosen-container .chosen-results-scroll-up span {background-image: url('chosen-sprite@2x.png') !important;background-size: 52px 37px !important;background-repeat: no-repeat !important;} } /* @end */八、更多干貨🎁
1.如果我的博客對你有幫助、如果你喜歡我的博客內容,請 “👍點贊” “??評論” “💙收藏” 一鍵三連哦!
2.💗【👇🏻👇🏻👇🏻關注我| 獲取更多源碼 | 優質文章】 帶您學習各種前端插件、3D炫酷效果、圖片展示、文字效果、以及整站模板 、大學生畢業HTML模板 、期末大作業模板 、等! 「在這里有好多 前端 開發者,一起探討 前端 Node 知識,互相學習」!
3.以上內容技術相關問題💌歡迎一起交流學習👇🏻👇🏻👇🏻🔥
總結
以上是生活随笔為你收集整理的Web前端开发技术课程大作业: 关于美食的HTML网页设计——HTML+CSS+JavaScript在线美食订餐网站html模板源码30个页面:的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: jvm性能分析工具之-- Eclipse
- 下一篇: 在Ubuntu中编译运行C语言