?? 作者簡介: 一個熱愛把邏輯思維轉變為代碼的技術博主
作者主頁: 【主頁——獲取更多優質源碼】
web前端期末大作業: 【畢設項目精品實戰案例 (1000套) 】
程序員有趣的告白方式:【HTML七夕情人節表白網頁制作 (110套) 】
超炫酷的大屏可視化源碼:【 大屏展示大數據平臺可視化(150套) 】
免費且實用的WEB前端學習指南:
關于作者: 歷任研發工程師,技術組長,教學總監;曾于2016年、2020年兩度榮獲CSDN年度十大博客之星。 十載寒冰,難涼熱血;多年過去,歷經變遷,物是人非。 然而,對于技術的探索和追求從未停歇。 堅持原創,熱衷分享,初心未改,繼往開來!
文章目錄
一、?網站題目
美食網頁介紹、甜品蛋糕、地方美食小吃文化、餐飲文化、等網站的設計與制作。
二、??網站描述
美食主題網站 主要對各種美食進行展示,讓瀏覽者清晰地了解到各種美食的詳細信息,便于瀏覽者進行選擇。該模塊的左側有個美食分類,用戶可以選擇自己喜歡的種類,當點擊種類后,就會在右側出現該分類下的各種美食,用戶可以點擊自己感興趣的食品,從而看到它的具體信息。它的具體信息包括配料、產地及它的一些功能,使用戶對該食品有著全面的認識。
?靜態網站的編寫主要是用HTML DIV+CSS JS等來完成頁面的排版設計?,常用的網頁設計軟件有、、、 、、等等,用的最多的還是DW,當然不同軟件寫出的前端Html5代碼都是一致的個人網頁設計圖片簡單,本網頁適合修改成為各種類型的產品展示網頁,比如美食、旅游、攝影、電影、音樂等等多種主題,希望對大家有所幫助。
三、網站介紹
網站布局方面:計劃采用目前主流的、能兼容各大主流瀏覽器、顯示效果穩定的浮動網頁布局結構。
網站程序方面:計劃采用最新的網頁編程語言HTML5+CSS3+JS程序語言完成網站的功能設計。并確保網站代碼兼容目前市面上所有的主流瀏覽器,已達到打開后就能即時看到網站的效果。
網站素材方面:計劃收集各大平臺好看的圖片素材,并精挑細選適合網頁風格的圖片個人網頁設計圖片簡單,然后使用PS做出適合網頁尺寸的圖片。
網站文件方面:網站系統文件種類包含:html網頁結構文件、css網頁樣式文件、js網頁特效文件、網頁圖片文件;
網頁編輯方面:網頁作品代碼簡單,可使用任意HTML編輯軟件(如:、、 、 、、Text 、++ 等任意html編輯軟件進行運行及修改編輯等操作)。
其中:
(1)html文件包含:其中index.html是首頁、其他html為二級頁面;
(2) css文件包含:css全部頁面樣式,文字滾動, 圖片放大等;
(3) js文件包含:js實現動態輪播特效, 表單提交, 點擊事件等等(個別網頁中運用到js代碼)。
四、網站效果
五、 代碼實現 HTML結構代碼
<html>DOCTYPE html>
<html>
<head>
<meta name="viewport" charset="utf-8" content="width=1024">
<title>食品白酒紅酒酒類企業title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="order by Baidu.com" />
<link href="favicon.png" rel="shortcut icon">
<link rel="stylesheet" href="style/base.min.css" />
<link rel="stylesheet" href="style/animations.css" />
<link rel="stylesheet" href="style/idangerous.swiper.css" />
<link rel="stylesheet" href="style/font-awesome-ie7.min.css" />
<link rel="stylesheet" href="style/font-awesome.min.css" />
<style>
.zhongqiu {
display: none;
}
.longwen {
display: none;
}
.normal-code .bg {
position: absolute;
width: 100%;
background-color: #181414;
top: 0;
z-index: 40;
opacity: 0.8;

}
.code {
position: absolute;
width: 405px;
height: 500px;
left: 50%;
margin-left: -202.5px;
top: 50%;
margin-top: -250px;
z-index: 999;
}
.code-one {
background: url("longwencode.jpg") no-repeat;
}
.code-two {
background: url("longwencode.jpg") no-repeat;
}
style>
head>
<body>
<nav class="index-navbar"> <a href="index.htm" > <img src="images/logo.png" class="logo" alt="國館"/> a>
<div class="nav-container nav-login-area">
<ul class="phone">
<li class="icon-question-appearance"> <a href="#"> <img src="images/qustion.png" alt=""/> a> li>
<li class="icon-question-appearance"> <a href="#" style="color: #bfa79d!important;">0718-8020112a> li>
ul>
<a href="#" class="nav-login">a> div>
<div class="nav">
<div class="list" id="navlist">
<ul id="navfouce">
<li><a href="index-1.htm" >產品中心a>li>
<li><a href="index-2.htm" >品牌文化a>li>
<li><a href="index-3.htm" >企業動態a>li>
<li class="nav_right_start"><a href="index-4.htm" >土王傳播a>li>
<li><a href="index-5.htm" >合作共贏a>li>
<li class="shopping-cart-position"><a href="index-6.htm" ><i class="icon-shopping-cart icon-cart-appearance">i>官方商城a> li>
ul>
div>
div>
<div class="box clearfix" id="navbox" style="height:0px;opacity:0;overflow:hidden;">
<div class="cont clearfix" style="display:none;">
<ul class="sub-list clearfix" id="sub-list">
<li class="selected" onclick="window.open('index-6.htm'/*tpa=/gfsc/*/)"> <span> 產品商城 span> li>
<li class="selected" onclick="window.open('index-6.htm'/*tpa=/gfsc/*/)"> <span> 定制商城 span> li>
ul>
<div class="sub-box clearfix" id="sub-navbox">
<div class="sub-cont" style="display: block;"> <ul class='clearfix'>
<li>
<span width='25%'>
<a href="15.html" >土王酒·獻禮a>
span>
<span width='25%'>
<a href="23.html" >土王酒·施南a>
span>
<span width='25%'>

<a href="16.html" >土王酒·唐崖a>
span>
<span width='25%'>
<a href="17.html" >土王酒·容美a>
span>
li>
<li>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
li>
<li>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
li>
<li>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
li>
ul>
<div class="sub-cont-img"> <img src="images/1_03.jpg" style="position: absolute" alt=""/> div>
div>
<div class="sub-cont" style="display: none"> <ul class='clearfix'>
<li>
<span width='25%'>
<a href="18.html" >土王定制·唐崖 容美a>
span>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
li>
<li>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
li>
<li>

<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
li>
<li>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
<span width='25%'>
span>
li>
ul>
<div class="sub-cont-img"> <img src="images/1_01.png" alt=""/> div>
div>
div>
div>
div>
nav>
<div class="index-banner clearfix">
<div class="swift-banner">
<div class="swiper-main">
<div class="swiper-container ">
<div class="swiper-wrapper">
<div class="swiper-slide backgroundsise-cover one"> <a href="#">
<div class="banner-img banner-one"> <img src="images/longwen.jpg" alt=""/>
div>
a> div>
<div class="swiper-slide backgroundsise-cover two"> <a href="#">
<div class="banner-img banner-two"> <img src="images/20150222.jpg" alt=""/> div>
a> div>
<div class="swiper-slide backgroundsise-cover"> <a href="15.html" >
<div class="banner-img"> <img src="images/20150907182629.jpg" alt=""/> div>
a> div>
div>
div>
<div class="pagination pagination1">div>
div>
div>
<div class="zhongqiu normal-code">
<div class="bg">div>
<div class="code code-one">div>
div>
<div class="longwen normal-code">
<div class="bg">div>
<div class="code code-two">div>
div>
div>

<div class="container clearfix">
<div class="block-left">
<div class="main-product"> <a href="index-6.htm" > <img src="images/602-686.jpg" alt="文化土王酒系列"/> a> div>
<div class="main-product-introduce"> <a href="javascript:void(0)">
<h1> 「土王 · 土司文化」金玉滿堂 紅紅火火 h1>
<span> 古法釀造工藝土家文化韻味經典之作 span> a> div>
div>
<div class="block-right">
<div class="block-right-top">
<div class="block-content">
<a href="15.html" class="red-button" style="opacity: 0;"> <i class="icon-angle-right">i>
a> div>
div>
<div class="block-right-bottom"> <a href="" > <img src="images/1_02_1.jpg" alt="典藏中國系列"/> a> div>
<div class="main-product-introduce"> <a href="" >
<h1> 產品大片 h1>
<span> 土王酒文化,獨一無二領袖品質 span> a> div>
div>
<div class="explorer-whzg"> <a href="15.html" > <img src="images/1-16011014225a63.jpg" alt=""/> a> <a href="15.html" >
<h3> 土王酒·獻禮 h3>
a> div>
<div class="explorer-whzg"> <a href="23.html" > <img src="images/1-1601151445192N.jpg" alt=""/> a> <a href="23.html" >
<h3> 土王酒·施南 h3>
a> div>
<div class="explorer-whzg"> <a href="16.html" > <img src="images/1-1601111326101I.jpg" alt=""/> a> <a href="16.html" >
<h3> 土王酒·唐崖 h3>
a> div>
<div class="explorer-whzg"> <a href="18.html" > <img src="images/1-16011114094K38.jpg" alt=""/> a> <a href="18.html" >
<h3> 土王定制·唐崖 容美 h3>
a> div>
div>
<footer class="footer">
<div class="container footer-nav">
<ul class="clearfix">
<li> <a href="index-2.htm" > 了解土王 a> li>
<li> <a href="index-7.htm" > 聯系土王 a> li>
<li> <a href="index-5.htm" > 加入我們 a> li>
<li> <a href="index.htm" > <img src="images/logo.png" class="bottom-logo" alt=""/> a> li>
<li> <a href="" target="_blank"> 天貓旗艦店 a> li>
<li> <a href="" target="_blank"> 新浪微博 a> li>
<li> <a href="" target="_blank" class="ggqore-code"> 官方微信 a> li>
ul>
<span class="copyright-info"> ? <a href="index.htm" > 2016 土王酒業 a> <a href="" target="_blank"> 鄂ICP備16001248號 a> span> div>
footer>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F932682468c55e35a36ca571ec037636b' type='text/javascript'%3E%3C/script%3E"));
script>
body>
<script src="js/jquery-1.9.1.min.js" >script>
<script src="js/idangerous.swiper.min.js" >script>
<script src="js/index.js" >script>
<script src="js/nav.js" >script>
html>

CSS樣式代碼
/* 我的網站(Baidu.com)做最好的織夢整站模板下載網站 */
@charset "utf-8";
html {
color:#000;
font-size:12px
}
body {
font:14px/1.5 "Microsoft Yahei", "Hiragino Sans GB", sans-serif!important;
background-color:#fff;
height:100%;
width:100%;
min-height:40rem;
min-width:1180px
}
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
margin:0;
padding:0
}
body, button, input, select, textarea {
font-family:"Microsoft Yahei", "Helvetica Neue", Helvetica, "Wenquanyi Micro Hei", Arial, sans-serif
}
table {
border-collapse:collapse;
border-spacing:0
}
th {
text-align:inherit
}
fieldset, img {
border:0
}
iframe {
display:block
}
abbr, acronym {
border:0;
font-variant:normal
}
del {
text-decoration:line-through
}
address, caption, cite, code, dfn, em, th, var {
font-style:normal;
font-weight:500
}
ol, ul {
list-style:none
}
caption, th
六、 如何讓學習不再盲目
很多剛入門編程的小白學習了基礎語法,卻不知道語法的用途,不知道如何加深映像,不知道如何提升自己,這個時候每天刷自主刷一些題就非常重要(百煉成神),可以去牛客網上的編程初學者入門訓練。該專題為編程入門級別,適合剛學完語法的小白練習,題目涉及編程基礎語法,基本結構等,每道題帶有練習模式和考試模式,可還原考試模式進行模擬,也可通過練習模式進行練習。
七、更多干貨
1.如果我的博客對你有幫助、如果你喜歡我的博客內容,請 “點贊” “??評論” “收藏” 一鍵三連哦!
2.【關注我| 獲取更多源碼 | 優質文章】 帶您學習各種前端插件、3D炫酷效果、圖片展示、文字效果、以及整站模板 、大學生畢業HTML模板 、期末大作業模板 、等! 「在這里有好多 前端 開發者,一起探討 前端 Node 知識,互相學習」!
3.
以上內容技術相關問題歡迎一起交流學習