HTML+CSS+JS静态网页设计【二十四节气】期末课程大作业

发布于:2023-01-22 ⋅ 阅读:(379) ⋅ 点赞:(0)


一、👨‍🎓网站题目

🏮传统春节网页设计、🎅圣诞节节日发展、🥮中秋、端午传统节日习俗庆祝、🎏地区特色,网站模板 、等网站的设计与制作。


二、✍️网站描述

🏷️ 大学生传统节日网页作业成品采用DIV CSS布局制作,主要内容包括节日介绍、节日发展、习俗庆祝、地区特色等内容,作品共多个页面,学生HTML静态网页基础水平制作,页面排版干净简洁。网页技术方面应用包括网页背景颜色、字号字体设置、超链接、图文页面、菜单栏、顶部大图等网页基础知识点

🏅 一套优质的💯网页设计应该包含 (具体可根据个人要求而定)

  1. 页面分为页头、菜单导航栏(最好可下拉)、中间内容板块、页脚四大部分。
  2. 所有页面相互超链接,可到三级页面,有5-10个页面组成。
  3. 页面样式风格统一布局显示正常,不错乱,使用Div+Css技术。
  4. 菜单美观、醒目,二级菜单可正常弹出与跳转。
  5. 要有JS特效,如定时切换和手动切换图片轮播。
  6. 页面中有多媒体元素,如gif、视频、音乐,表单技术的使用。
  7. 页面清爽、美观、大方,不雷同。 。
  8. 不仅要能够把用户要求的内容呈现出来,还要满足布局良好、界面美观、配色优雅、表现形式多样等要求。

三、📚网站介绍

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

📓网站程序方面:计划采用最新的网页编程语言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结构代码



<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>节气</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .body {
      margin: 0 auto;
      padding: 0;
    }

    .bigbox {
      width: 100%;
      height: 700px;
      background-color: #b7d4f2;
      text-align: center;
      background: #CCC url(picture/bg.jpg) no-repeat center;
      background-size: cover;
    }

    .top {
      width: 100%;
      height: 70px;
      background-color: #6b6b6b;
      opacity: 0.5
    }

    .nav {
      margin: 0 auto;
      width: 1100px;
      height: 70px;
      transform: translate(0, -70px)
    }

    .nav li {
      list-style: none;
      float: left;
      width: 200px;
      height: 70px;
      line-height: 70px;
      text-align: left;
      font-family: "演示夏行楷";
      font-size: 24px;
      text-align: right;
    }

    .nav .logo {
      text-align: left;
    }

    .nav a {
      color: #020346;
      text-decoration: none;
    }


    a:visited {
      text-decoration: none;
    }

    .nav a:hover {
      color: #fff;
      text-decoration: none;
    }

    a:active {
      text-decoration: none;
    }


    .middle {
      width: 1100px;
      margin: 0 auto;
      height: 482px;
    }

    .kuang {
      width: 150px;
      height: 40px;
      float: right;
      margin-top: 350px;
      margin-right: 50px;
      border: solid 1px #FFF;
      border-radius: 8%;
      font-family: "黑体";
      font-size: 18px;
      color: #FFF;
      text-align: center;
      line-height: 40px;
    }
  </style>

  <link rel="stylesheet" href="css/style.css">
</head>

<body>
  <!------------导航条------------------>
  <div class="bigbox">
    <div class="top"></div>
    <div class="nav">
      <li style="margin-left: 100px;"><a href="">首页</a></li>
      <li><a href="jianjie.html">节气简介</a></li>
      <li><a href="cansai.html">节气含义</a></li>
      <li><a href="xiangce.html">相册</a></li>
    </div>
    <!------------内容区------------------>
    <div class="middle">
      <div class="left_text">

        <a href="#" class="more">了解更多</a>
      </div>
    </div>

    <!------------底部------------------>

    <div class="bottom">
      <div class="bottom_main">
        <ul>
        

          <div style="clear: both;"></div>
        </ul>

        <div class="code">
          <div class="code_img">
            <img src="picture/7.jpg" alt="">
          </div>
          <div class="code_img">
            <img src="picture/bg.jpg" alt="">
          </div>
          <div style="clear:both"></div>
        </div>

        <div class="lianxi">
          <p>春雨惊春清谷天,夏满芒夏暑相连。
            </p>
          <p>
            秋处露秋寒霜降,冬雪雪冬小大寒。
           
          </p>
          <p>
            每月两节不变更,最多相差一两天。
          </p>
          <p>
            上半年来六廿一,下半年是八廿三。

          </p>
        </div>
      </div>
    </div>

</div></body>

</html>


💒CSS样式代码

body {
  background: url(http://www.ylcp.shop/files/files/1654744357404/css/images/bg.jpg) no-repeat;
  background-size: cover;
}
.more {
  width: 120px;
  height: 40px;
  border-radius: 40px;
  border: 1px solid #020346;
  margin-top: 30px;
  display: block;
  text-decoration: none;
  text-align: center;
  line-height: 40px;
  color: #020346;
  transition: 0.2s;
}
.more:hover {
  background: #020346;
  color: #fff;
}
.left_text {
  width: 500px;
  text-align: left;
}
.left_text h2 {
  font-size: 40px;
  color: #020346;
  font-weight: 300;
}
.left_text .line {
  width: 50px;
  height: 3px;
  margin: 20px 0;
  background: #020346;
}
.left_text P {
  font-size: 20px;
  font-weight: 300;
  color: #020346;
}
.bottom {
  width: 100%;
  background: #020346;
  padding: 0 20px;
  box-sizing: border-box;
}
.bottom_main {
  width: 1100px;
  height: 100%;
  margin: 0 auto;
  text-align: left;
  color: #fff;
  padding: 20px 0;
}
.bottom_main a {
  text-decoration: none;
  color: #fff;
}
.bottom_main li {
  float: left;
  width: 16%;
  height: 50px;
  line-height: 50px;
  position: relative;
}
.bottom_main li a {
  display: block;
  text-align: center;
  position: relative;
}
.bottom_main li:hover {
  background: #fff;
}
.bottom_main li:hover a {
  color: #020346;
}
ul {
  list-style: none;
}
.code {
  width: 240px;
  margin: 20px auto;
  text-align: center;
}
.code_img {
  float: left;
  width: 100px;
  text-align: center;
  font-size: 12px;
  margin: 0 10px;
}
.code_img img {
  width: 100%;
}
.lianxi {
  margin-top: 20px;
}
.lianxi p {
  text-align: center;
  font-size: 14px;
  line-height: 2;
}
.jianjie {
  padding: 0 30px;
}
.jianjie h2 {
  font-weight: normal;
  color: #020346;
}
.jianjie h5 {
  font-weight: normal;
  margin: 10px 0;
  color: #666;
  font-size: 14px;
}
.jianjie hr {
  color: #020346;
  margin-bottom: 20px;
}
.jianjie p {
  font-size: 16px;
  line-height: 2;
  text-indent: 2em;
  margin-bottom: 10px;
  text-align: left;
}
.jianjie b {
  font-weight: 600;
}
.cansai {
  padding: 0 30px;
}
.cansai h2 {
  font-weight: normal;
  color: #020346;
}
.cansai h5 {
  font-weight: normal;
  margin: 10px 0;
  color: #666;
  font-size: 14px;
}
.cansai hr {
  color: #020346;
  margin-bottom: 20px;
}
.cansai p {
  font-size: 16px;
  line-height: 2;
  text-indent: 2em;
  margin-bottom: 10px;
  text-align: left;
}
.cansai b {
  font-weight: 600;
}
.banner {
  width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}
.banner img{
  width: 100%;
}
.xiangce {
  padding: 0 30px;
}
.xiangce h2 {
  font-weight: normal;
  color: #020346;
}
.xiangce h5 {
  font-weight: normal;
  margin: 10px 0;
  color: #666;
  font-size: 14px;
}
.xiangce hr {
  color: #020346;
  margin-bottom: 20px;
}
.xiangce .xiangce_box {
  padding: 0 40px;
}
.xiangce .xiangce_box .xiangce_info {
  width: 30%;
  float: left;
  margin-right: 40px;
  background: #fff;
  box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}
.xiangce .xiangce_box .xiangce_info .xiangce_img {
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.xiangce .xiangce_box .xiangce_info .xiangce_img img {
  width: 100%;
  height: 100%;
  transition: 0.2s;
}
.xiangce .xiangce_box .xiangce_info .text {
  padding: 20px;
  text-align: left;
  transition: 0.2s;
}
.xiangce .xiangce_box .xiangce_info .text p {
  margin-bottom: 16px;
  overflow: hidden;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  color: #424242;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xiangce .xiangce_box .xiangce_info .text span {
  color: #424242;
  font-size: 14px;
}
.xiangce .xiangce_box .xiangce_info:hover {
  cursor: pointer;
}
.xiangce .xiangce_box .xiangce_info:hover img {
  transform: scale(1.2);
}
.xiangce .xiangce_box .xiangce_info:hover .text {
  background: #020346;
}
.xiangce .xiangce_box .xiangce_info:hover .text p {
  color: #fff;
}
.xiangce .xiangce_box .xiangce_info:hover .text span {
  color: #fff;
}





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

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


七、🎁更多干货

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

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

3.

以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻💬

本文含有隐藏内容,请 开通VIP 后查看