web網頁設計期末課程大作業(yè):美食餐飲文化主題網站設計——上海美食網站制作與實現(xiàn) 5頁

一谊路、??作品介紹

HTML實例網頁代碼, 本實例適合于初學HTML的同學耳璧。該實例里面有設置了css的樣式設置,有div的樣式格局酱床,這個實例比較全面,有助于同學的學習,本文將介紹如何通過從頭開始設計個人網站并將其轉換為代碼的過程來實踐設計售淡。


二斤葱、??作品效果

??視頻演示

https://live.csdn.net/v/embed/239948

(title-F99JP 上海美食 5頁 無js 帶留言表單)]

?? 截圖演示

05.png
04.png
03.png
02.png
01.png


三、?? 作品代碼

??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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/shouye.css" type="text/css" rel="stylesheet" />

<title>上海美食</title>
</head>

<body style="height:1000px;">
<div class="sum">
    <div class="banner"><img src="img/banner.jpg" />
  </div>
  <div class="menu">
    <ul>
       <li><a href="index.html">主頁</a></li>
      <li><a href="zhongcan.html">美食展示</a></li>
      <li><a href="meishizhizuo.html">美食制作</a></li>
      <li><a href="mingdian.html">名店搜羅</a></li>
      <li><a href="liuyan.html">留言板</a></li>
    </ul>
  </div>
  <div class="null"></div>
  <div class="content">
    <div class="content_left">
      <div class="login">
        <div class="login_top">登陸</div>
        <div class="user">用戶名:
          <input type="text" size="20" />
        </div>
        <div class="pass">密&nbsp;&nbsp;碼:
          <input type="password" size="20" />
        </div>
        <div class="down">
          <input type="button" value="登 陸" />
          <input type="button" value="注 冊" />
        </div>
      </div>
      <div class="lnull"></div>
        <img src="img/hh1.jpg" width="200" />
    </div>
    <div class="content_right">
      <div class="zhuce" >
        <div class="zhuce_info">姓名:
          <input />
        </div>
        <div class="zhuce_info">電話:
          <input />
        </div>
        <div class="zhuce_info">郵箱:
          <input />
        </div>
        <div class="zhuce_info">手機:
          <input />
        </div>
        <div class="">留言:
          <textarea style="width:460px; height:250px; border:1px solid #000; float:right;"></textarea>
        </div>
        <div class="subout">
          <div class="sub" ><a href="#">提交</a></div>
          <div class="sub" ><a href="#">重置</a></div>
        </div>
      </div>
      <div style="clear:both"></div>
    </div>
  </div>
  <div class="clear"></div>
  <div class="foot">
   <p align="center" style="line-height:60px; color:#fff;">歡迎光臨</p>
    
  </div>
</div>
</body>
</html>




??CSS代碼



*{ margin:0; padding:0; font-family:Microsoft YaHei;}
.clear{ clear:both;}
.fl{ float:left;}
.fr{ float:right;}
img{ border:none;}
a{ text-decoration:none;}
a:hover{ text-decoration:underline;}
li{ list-style-type:none;}
.ofh{overflow:hidden;}
.center{   }
.em{ text-indent:2em;}
p{ font-size:14px; line-height:24px; color:#555;}



body {
    margin:0;
    padding:0;

}
.null {
    width:1000px;
    height:20px;
}
.sum {
    width:1000px;
    margin:0 auto; 
    height:auto; 
}

#div1 {
    width: 60px;
    height: 80px;
    position: absolute;
    right: 0;
    bottom: 0;
    color: #FFF;
    background-color: #990;
}

.menu {
font-family: arial, sans-serif; 
width:1000px; 
margin:0; 


}

/* remove the bullets and set the margin and padding to zero for the unordered list */
.menu ul {
padding:0; 
margin:0;
list-style-type: none;
}
/* float the list so that the items are in a line and their position relative so that the drop down list will appear in the right place underneath each list item */
.menu ul li {
float:left; 
position:relative;

}
/* style the links to be 104px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */
.menu ul li a {
display:block; 
text-align:center; 
text-decoration:none; 
width:104px; 
height:34px; 
color:#fff; 
border:1px solid #fff;
border-width:1px 1px 0 0;
background:#0362a4; 
line-height:34px; 

width:199px;
}
/* make the dropdown ul invisible */
.menu ul li ul {
display: none; z-index:99999;
}

.menu ul li:hover ul {
display:block; 
position:absolute; 
top:34px; 
left:0; 
width:105px; z-index:99999;
}
/* style the background and foreground color of the submenu links */
.menu ul li:hover ul li a {
display:block; 
background:#faeec7;  z-index:99999;
color:#000;
}
/* style the background and forground colors of the links on hover */
.menu ul li:hover ul li a:hover {
    color:#000;
    background-color:#f00; z-index:99999;
}


.content {
    width:1000px;
    height:600px;
}
.content_left {
    width:240px;
    height:600px;
    float:left;
}
.login {
    width:238px;
    height:268px;
    border:1px solid #CCCCCC;
}
.login_top {
    width:238px;
    height:40px;
    font-size:20px;
    color:#333333;
    line-height:40px;
    text-align:center;
}
.user {
    width:238px;
    height:60px;
    font-size:18px;
}
.pass {
    width:238px;
    height:60px;
font-size:18px;
}
.right_main{ padding:10px;}

.down {
    width:200px; padding-left:30px;
    height:88px;
}
.lnull {
    width:240px;
    height:30px;
}
.list {
    width:238px;
    height:298px;
    border:1px solid #CCCCCC;
}
.list_one_sum {
    width:218px;
    height:248px;
    padding:0 10px 0 10px;
}
.list_one {
    width:218px;
    height:30px;
    border-bottom:1px dotted #CCCCCC;
    line-height:30px;
    font-size:14px;
}
.list_one_left {
    width:30px;
    height:30px;
    float:left;
}
.list_one_center {
    width:138px;
    height:30px;
    float:left;
}
.list_one_right {
    width:50px;overflow:hidden;
    height:30px;
    float:left;
    font-size:11px;
    color:#666666;
}
.list_one a {
    text-decoration:none;
    color:#666666;
}
.list_one a:hover {
    text-decoration:underline;
    color:#003300;
}
.content_right {
    width:740px;
    float:right;
    height: auto;
}
.content_top {
    width:740px;
    height:280px;
}
.content_null {
    width:740px;
    height:20px;
}
.content_down {
    width:740px;
    height:300px;
}
.content_down_left {
    width:360px;
    height:300px;
    float:left;
}
.content_down_right {
    width:360px;
    height:300px;
    float:right;
}
.foot {
    width:1000px; margin-top:30px;
    height:60px; background:#0362a4; color:#fff;
}

.top {
    width:320px;
    margin:0 auto;
}
.foot_top li {
    list-style:none;
    font-size:14px;
    width:80px;
    height:40px;
    float:left;
}
.foot_top li a {
    text-decoration:none;
    color:#666666;
}
.foot_top li a:hover {
    color:#FF0000;
}
.foot_down {
    text-align:center;
    font-size:14px;
    color:#666666;
}

.zhuce{width:600px; height:300px; margin:auto; margin-top:80px; margin-left:80px; font-size:16px; color:#222;}
.zhuce_info{width:600px; height:30px; margin:10px auto;}
.zhuce_info input{ width:450px; height:20px; padding:5px; border:1px solid #333; font-size:14px; color:#333; float:right;}

.subout{width:400px; height:50px; margin-left:200px; font-size:18px; color:#222;}
.sub{width:120px; height:25px; padding:5px; margin:10px; float:left; background-color:#900; text-align:center; }
.sub:hover{ background-color:#000;}
.sub a{ font-size:18px; color:#fff;}

























四揖闸、??更多源碼

【干貨分享】自學編程的小伙伴可以前往我的 gitee 倉庫(持續(xù)更新中...)

??【web學習指南】從web基礎揍堕、計算機基礎到前端常用框架的教程,涵蓋前端大部分必備知識(學習指南 + 技術文章 + 資源分享)

Gitee倉庫地址(來個Star吧~): https://gitee.com/zhanyuqiu2022/my-app

?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末汤纸,一起剝皮案震驚了整個濱河市衩茸,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌贮泞,老刑警劉巖楞慈,帶你破解...
    沈念sama閱讀 221,695評論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異啃擦,居然都是意外死亡囊蓝,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,569評論 3 399
  • 文/潘曉璐 我一進店門令蛉,熙熙樓的掌柜王于貴愁眉苦臉地迎上來聚霜,“玉大人狡恬,你說我怎么就攤上這事⌒睿” “怎么了弟劲?”我有些...
    開封第一講書人閱讀 168,130評論 0 360
  • 文/不壞的土叔 我叫張陵,是天一觀的道長姥芥。 經常有香客問我兔乞,道長,這世上最難降的妖魔是什么凉唐? 我笑而不...
    開封第一講書人閱讀 59,648評論 1 297
  • 正文 為了忘掉前任庸追,我火速辦了婚禮,結果婚禮上熊榛,老公的妹妹穿的比我還像新娘锚国。我一直安慰自己,他們只是感情好玄坦,可當我...
    茶點故事閱讀 68,655評論 6 397
  • 文/花漫 我一把揭開白布血筑。 她就那樣靜靜地躺著,像睡著了一般煎楣。 火紅的嫁衣襯著肌膚如雪豺总。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,268評論 1 309
  • 那天择懂,我揣著相機與錄音喻喳,去河邊找鬼。 笑死困曙,一個胖子當著我的面吹牛表伦,可吹牛的內容都是我干的。 我是一名探鬼主播慷丽,決...
    沈念sama閱讀 40,835評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼蹦哼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了要糊?” 一聲冷哼從身側響起纲熏,我...
    開封第一講書人閱讀 39,740評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎锄俄,沒想到半個月后局劲,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經...
    沈念sama閱讀 46,286評論 1 318
  • 正文 獨居荒郊野嶺守林人離奇死亡奶赠,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 38,375評論 3 340
  • 正文 我和宋清朗相戀三年鱼填,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片毅戈。...
    茶點故事閱讀 40,505評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡苹丸,死狀恐怖塑猖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情谈跛,我是刑警寧澤,帶...
    沈念sama閱讀 36,185評論 5 350
  • 正文 年R本政府宣布塑陵,位于F島的核電站感憾,受9級特大地震影響,放射性物質發(fā)生泄漏令花。R本人自食惡果不足惜阻桅,卻給世界環(huán)境...
    茶點故事閱讀 41,873評論 3 333
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望兼都。 院中可真熱鬧嫂沉,春花似錦、人聲如沸扮碧。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,357評論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽慎王。三九已至蚓土,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間赖淤,已是汗流浹背蜀漆。 一陣腳步聲響...
    開封第一講書人閱讀 33,466評論 1 272
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留咱旱,地道東北人确丢。 一個月前我還...
    沈念sama閱讀 48,921評論 3 376
  • 正文 我出身青樓,卻偏偏與公主長得像吐限,于是被迫代替她去往敵國和親鲜侥。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 45,515評論 2 359

推薦閱讀更多精彩內容