web网页设计期末课程大作业:美食餐饮文化主题网站设计——上海美食网站制作与实现 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 仓库(持续更新中...)

📕【web学习指南】从web基础、计算机基础到前端常用框架的教程,涵盖前端大部分必备知识(学习指南 + 技术文章 + 资源分享)

Gitee仓库地址(来个Star吧~): https://gitee.com/zhanyuqiu2022/my-app

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 217,185评论 6 503
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,652评论 3 393
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 163,524评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,339评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,387评论 6 391
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,287评论 1 301
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,130评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,985评论 0 275
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,420评论 1 313
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,617评论 3 334
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,779评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,477评论 5 345
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,088评论 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,716评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,857评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,876评论 2 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,700评论 2 354

推荐阅读更多精彩内容