制作一个简单HTML传统中秋节日网页(HTML+CSS)

一、👨‍🎓网站题目

旅游,当地特色,历史文化,特色小吃等网站的设计与制作。

二、✍️网站描述


云南旅游主题的网页 一共七个个页面
- 旅游网页使用html css js制作 有banana图
- 页面可以相互跳转 包含表单 三级页面
- 网页可以使用vscode hbuilder dw等打开修改
- 里面的图片和文字都可以替换为其他旅游网页
- 云南旅游网页介绍了景点,美食,联系我们,桂林旅游等
- html静态网页 没有复杂效果 布局简单 原创html网页设计 适合当作业使用

👨‍🎓静态网站的编写主要是用HTML DIV+CSS 等来完成页面的排版设计👩‍🎓,常用的网页设计软件有Dreamweaver、EditPlus、HBuilderX、VScode 、Webstorm、Animate等等,用的最多的还是DW,当然不同软件写出的前端Html5代码都是一致的,本网页适合修改成为各种类型的产品展示网页,比如美食、旅游、摄影、电影、音乐等等多种主题,希望对大家有所帮助。

三、📚网站介绍


📔网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。

📓网站程序方面:计划采用最新的网页编程语言HTML5+CSS3程序语言完成网站的功能设计。并确保网站代码兼容目前市面上所有的主流浏览器,已达到打开后就能即时看到网站的效果。

📘网站素材方面:计划收集各大平台好看的图片素材,并精挑细选适合网页风格的图片,然后使用PS做出适合网页尺寸的图片。

📒网站文件方面:网站系统文件种类包含:html网页结构文件、css网页样式文件、js网页特效文件、images网页图片文件;

📙网页编辑方面:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。
其中:
(1)📜html文件包含:其中index.html是首页、其他html为二级页面;
(2)📑 css文件包含:css全部页面样式,文字滚动, 图片放大等;

 四、🌐网站效果

 

 

 

 

五、🪓 代码实现


🧱HTML
<html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中国传统节日——端午节</title>
<link rel="stylesheet" type="text/css" href="css/index.css" >
<style type="text/css">
		.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}
 
ul {
  list-style-type: none;
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
}
 
li {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: center; 
}
 
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: Arial, sans-serif;
}
 /* 输入框背景色修改 */
 textarea,
 input[type="text"] {
   background-color: rgb(117, 223, 188);
 }
 
input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: Arial, sans-serif;
}
.name {
  color: yellow;
  font-weight: bold; 
}
 
button.sub {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
}
 
button.sub:hover {
  background-color: #45a049;
}
 
button.remove {
  background-color: #f44336;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}
 
button.remove:hover {
  background-color: #e53935;
}
/* 添加button渐变效果 */
 .sub{
  padding: 1rem 2.5rem;
  border:none;
  outline:none;
  border-radius: 0.4rem;
  background-color: rgb(14,14, 26);
  color:rgb(234, 234, 234);
  box-shadow: 0px 0px 60px #1471a2;
  /* 设置盒子反射 */
  -webkit-box-reflect:
  /* 反射设置在底部 */ 
  below 10px
  linear-gradient(
      /* 设置渐变色 */
      to bottom,
      rgba(0,0,0,0.0)
      rgba(0,0,0,0.4)
  );
}
/* 设置悬浮样式 */
  .sub:hover{
      background:  linear-gradient(
          270deg,
          rgba(178, 210, 133, 0.681)0%, 
          rgba(31,215,232,0.873)60%);
          color: rgb(4,4,38);textarea,
input[type="text"] {
  /* 其他样式规则 */
 
  width: 50%;
}
 
  }
  .sub{
      transition:1s
  }
  /* 输入框背景色修改 */
  textarea,
input[type="text"] {
  background-color: #445780;
  width: 50%;
}

		</style>
</head>

<body>
<div class="page">
<div class="banner"><img src="img/banana2.png" height="500px;" width="1003px;"  /></div>

<div class="daohang">
<p><a href="index.html" >首页</a></p>
<p><a href="jianjie.html" >中秋简介</a></p>
<p><a href="qiyuan.html" >起源传说</a></p>
<p><a href="shisu.html">各种食俗</a></p>
<p><a href="liuyan.html" >客户留言</a></p>
</div>

<div class="content">

<div class="zuo">
</div>
       
</div>


<div style="background-color:#445780">
			 <i>
        <h1>留言板</h1>
     </i>
    
       
 
        <div class="container"> 
            <p class="bth">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&emsp;&emsp;&emsp;&emsp;提交文件<input type="file"></p>
            <input type="text" placeholder="请输入昵称:" name="name" id="nameInput">
            <textarea placeholder="请留言" name="pwd" id="textarea" cols="36" rows="16">请你留言:</textarea>
            <br>
            <button class="sub">发布</button>
        </div>
    <script src="css/index.js"></script>


</div>


<div class="clearit"></div>

<div class="foot_bg">
<div class="foot" style="background-color:#445780"><p style="font-size:18px;">中秋节</p></div>
</div>

</div>


</div>
</body>
</html>





🧱css
@charset "utf-8";
/* CSS Document */
body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div{margin:0;padding:0;border:0;}
*{margin:0;padding:0;border:0;}
body {	font-family: "宋体";font-size: 12px;color:#000000;line-height: 20px;text-align:left}
td,th {font-family: "宋体";font-size: 12px;color: #000000;}
a {color: #000000;}
A:link {TEXT-DECORATION: none;}
A:visited {TEXT-DECORATION: none;}
A:hover {TEXT-DECORATION: underline;}
ul,li{list-style-type:none;}

.clearit{clear:both;}
.page{width:1003px; margin:0 auto;}


.daohang{width:1003px; height:42px; margin:0 auto; overflow:hidden; background: url(../img/banana.png) repeat-x;}
.daohang p{width:110px; line-height:42px; display:block; float:left; text-align:center; font-size:14px; }
.daohang p a{color:#FFFF00;}

.content{width:1003px; margin:0 auto; background:#445780; padding:20px 0 0;}

.zuo{width:220px; float:left; margin-left:10px; display:inline;}
.fangshi{width:220px; border:1px solid #FFF; }
.fangshi h1{font-size:14px; padding:0 10px; font-weight:bold;
 line-height:26px; line-height:26px; border-bottom:1px solid #FFF; color:#FFF;}
.fangshi p{text-align:left; padding:0 10px; line-height:24px;color:#FFF;}
.you{width:750px; float:left; margin-left:10px; display:inline;}
.jieshao1{width:990px;border:1px solid #036b27; background:#ffffff; margin-bottom:10px; }
.jieshao{width:748px;border:1px solid #036b27; background:#ffffff; margin-bottom:10px; }
.jieshao h1{font-size:14px; padding:0 10px; font-weight:bold; line-height:28px; line-height:28px; background:#ffffff;border-bottom:1px solid #036b27; color:#036b27;}
.jieshao p{text-align:left; padding:10px; line-height:24px;color:#036b27;}

.jieshaoB{width:748px;border:1px solid #036b27; background:#ffffff; margin-bottom:10px; }
.jieshaoB h1{font-size:14px; padding:0 10px; font-weight:bold; line-height:28px; line-height:28px; background:#ffffff;border-bottom:1px solid #036b27; color:#036b27;}
.jieshaoB p{padding:10px 0;}
.jieshaoB img{width:200px; margin-right:10px; padding:1px; border:1px solid #FFFF00; background:#FFFFFF;}
.foot{width:1003px; margin:0 auto; padding:70px 0 20px; background:url(../images/foot.jpg) repeat-x top;}
.foot p{text-align:center; line-height:30px; color:#000000;}
.foot_bg{width:1003px; margin:0 auto; background:#00a634;}

.you h2{font-size:14px; font-weight:bold; text-align:center; line-height:30px; border-bottom:1px solid #FFFF00; color:#FFFF00;}
.neirong{padding:0 20px 200px; line-height:24px; color:#036b27; background:url(../images/neirong_bg.jpg) no-repeat bottom;}
.neirong h1{font-size:14px; font-weight:bold; text-align:center; line-height:30px; border-bottom:2px solid #036b27;}

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


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

七、🎁更多干货


1.如果我的博客对你有帮助、如果你喜欢我的博客内容,请 “👍点赞” “✍️评论” “💙收藏” 一键三连哦!

2.💗【👇🏻👇🏻👇🏻关注我| 获取更多源码 | 优质文章】 带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!

3.以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻🔥源代码

4.有任何意见或者不懂得地方可以在评论区留言,也可以私信,我会认真看也会回复的哦

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值