大学生简单静态HTML网页模板源码——家乡介绍美丽乡村11页

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

家乡旅游景点网页作业制作 网页代码运用了DIV盒子的使用方法,如盒子的嵌套、浮动、margin、border、background等属性的使用,外部大盒子设定居中,内部左中右布局,下方横向浮动排列,大学学习的前端知识点和布局方式都有运用,CSS的代码量也很足、很细致,使用hover来完成过渡效果、鼠标滑过效果等,使用表格、表单补充模块,为方便新手学习页面中没有使用js有需要的可以自行添加。


⚽精彩专栏推荐👇🏻👇🏻👇🏻

【作者主页——🔥获取更多优质源码】
【web前端期末大作业——🔥🔥毕设项目精品实战案例(1000套)】


一、网页介绍📖

1 网页简介:此作品为学生个人主页网页设计题材,HTML+CSS 布局制作,web前端期末大作业,大学生网页设计作业源码,这是一个不错的网页制作,画面精明,代码为简单学生水平, 非常适合初学者学习使用。

2.网页编辑:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。

3.知识应用:技术方面主要应用了网页知识中的: Div+CSS、鼠标滑过特效、Table、导航栏效果、Banner、表单、二级三级页面等,视频、 音频元素 、Flash,同时设计了Logo(源文件)所需的知识点。


一、网页效果🌌

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述


二、代码展示😈


1.HTML结构代码 🧱

代码如下(示例):以下仅展示部分代码供参考~

<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title></title>
  <meta name="keywords" content="美好乡村 板石岭">
  <meta name="description" content="美好乡村 板石岭">
  <link rel="stylesheet" type="text/css" href="css/2016.css">
  <script type="text/javascript" src="js/jquery.min.js"></script>
  <script type="text/javascript" src="js/lubotu.js"></script>
  <script type="text/javascript" src="js/BreakingNews.js"></script>
</head>
<body>
<!-- 头部开始 -->
<div class="header">
  <div class="menu">
    <div class="logo"><a href="">美好乡村 板石岭</a></div>
    <div class="nav">
      <ul>
        <li class="on"><a href="" target="_self">首页</a></li>
        <li><a href="about.html" target="_self">走进板石岭</a></li>
        <li><a href="news.html" target="_self">旅游动态</a></li>
        <li><a href="product.html" target="_self">特产特色</a></li>
        <li class="nav_r"><a href="help.html" target="_self">制作说明</a></li>
      </ul>
    </div>
  </div>
</div>
<!-- 头部结束 -->
<!-- banner开始 -->
<div class="banner">
  <div class="bottom"><a id="bottom" href="#top">Bottom</a></div>
  <div class="lubo">
    <ul class='lubo_box'>
      <li style='opacity: 1;filter:alpha(opacity=100);'><a href='#' style='background:url(picture/banner1.jpg) center top no-repeat'></a></li>
      <li><a href='#' style='background:url(picture/banner2.jpg) center top no-repeat'></a></li>
      <li><a href='#' style='background:url(picture/banner3.jpg) center top no-repeat'></a></li>
    </ul>
  </div>
</div>
<!-- banner结束 -->
<!-- 主体部分开始 -->
<div class="main">
  <div class="news">
    <div class="BreakingNewsController easing" id="breakingnews2">
      <div class="bn-title"></div>
      <ul id="abc">
        <li><a href="show.html">家发镇联三村:美好乡村板石岭文化亮点</a></li>
        <li><a href="show2.html">铜陵、繁昌两地驴友携手同游美好乡村板石岭</a></li>
        <li><a href="show3.html">板石岭 看山水风光品味原生态的自然生活</a></li>
      </ul>
      <div class="bn-arrows">
        <span class="bn-arrows-left"></span>
        <span class="bn-arrows-right"></span>
      </div>
    </div>
  </div>
  <div class="product">
    <ul>
      <li><a href="product_1.html" target="_blank"><img src="picture/news1.jpg" width="280" height="210"><span>丰富的乡村文化生活</span></a></li>
      <li><a href="product_2.html" target="_blank"><img src="picture/news2.jpg" width="280" height="210"><span>纯手工制作的板石岭茶干</span></a></li>
      <li class="mr0"><a href="product_3.html" target="_blank"><img src="picture/news3.jpg" width="280" height="210"><span>板石岭农村文化展示馆</span></a></li>
    </ul>
  </div>
</div>
<!-- 主体部分结束 -->
<!-- 底部开始 -->
<div class="footer" id="top">
  <div class="footer-bottom"> 版权所有 &copy;  </div>
</div>
<!-- 底部结束 -->
<div id="share"><a id="a1">返回顶部</a></div>
<script>
$(function(){
    //首先将#back-to-top隐藏
    $("#a1").hide();
    //当滚动条的位置处于距顶部100像素以下时,跳转链接出现,否则消失
    $(function () {
        $(window).scroll(function(){
            if ($(window).scrollTop()>100){
                $("#a1").fadeIn();
            }
            else
            {
                $("#a1").fadeOut();
            }
        });
        //当点击跳转链接后,回到页面顶部位置
        $("#a1").click(function(){
            $('body,html').animate({scrollTop:0},500);
            return false;
        });
        $("#bottom").click(function(){
        	$('body,html').animate({
        		scrollTop: $($(this).attr("href")).offset().top + "px"
        	},500);
        	return false;
        });
    });
    // 滚动新闻
    $('#breakingnews2').BreakingNews({
		title: '旅游动态',
		timer: 4000,
		effect: 'slide'	
	});
    // 轮播图
	$(".lubo").lubo({});
}); 
</script>
</body>
</html>
<style>
  .main{
    background-image: url('picture/logo.png');
  }
</style>



2.CSS样式代码 🏠




* {margin:0;padding:0;}
body {font-size:14px;line-height: 180%; font-family:"Microsoft Yahei" , arial; ;background-color:#f5f5f5;color:#333333;text-align: left;}
a {color:#666666; text-decoration: none;}
a:hover {color:#12673b;}
li {list-style: none;}
img {border: none;}
h1, h2, h3, h4, h5, h6, small { font-size: 100%; font-weight: normal !important; }
.mr0 {margin-right:0 !important;}

/*头部导航*/
.header {width:100%;height:70px; line-height:70px; position:fixed;background:#ffffff;filter:alpha(opacity=80);-moz-opacity:0.80;opacity:0.80;-moz-box-shadow:2px 2px 5px #999999; -webkit-box-shadow:2px 2px 5px #999999; box-shadow:2px 2px 5px #999999;z-index: 1000;}
.menu {width:960px;margin:0 auto;overflow: hidden;}
.logo {float:left;width:237px;}
.logo a {display: block;background:url(../image/logo.png) no-repeat center center; text-indent:-9999px;background-size: 100% 100%; }
.nav {float:right;}
.nav li {float:left;width:80px;padding:0 10px;text-align: center;height:68px; line-height: 68px;background:url(../image/nav-line.jpg) no-repeat center right;font-size:16px;}
.nav li.on a {color:#12673b;}
.nav li a {display: block;}
.nav li a:hover {border-bottom:2px solid #12673b;}
.nav li.nav_r {background:none;}
.nav li.nav_r a {color:#ff0000;}
.nav li.nav_r a:hover {border-bottom:2px solid #ff0000;}

/*banner*/
.banner {width:100%;position: relative;}
.bottom {width:75px;height:86px;position: absolute; left:50%;margin-left:-38px;bottom:20px;z-index: 999;}
.bottom a {display:block;width:76px;height:86px;background:url(../image/bottom.png) no-repeat center center;text-indent: -9999px;}
.lubo{ width: 100%; min-width:1170px;clear: both; position: relative; height:674px;}
  .lubo_box{ position: relative; width: 100%; height:624px; }
  .lubo_box li{ float: left;position: absolute; top: 0; left: 0; width: 100%; height:624px; opacity: 0;filter:alpha(opacity=0);}
  .lubo_box li a{ display: block;width: 100%;  height: 100%;}

  .lubo_box li img{ width: 100%; height: 624px;}

  /*圆点*/
  .cir_box{ overflow: hidden; position: absolute; z-index: 100;}
  .cir_box li{ float: left; width: 70px; height: 5px; margin:0 5px; cursor: pointer; background: #fff; opacity: 0.8;filter:alpha(opacity=80);}
  .cir_on{ background: #f4a42b !important;}

  /*按钮*/
  .lubo_btn{ position: absolute; width: 100%; top: 50%;margin-top:-20px;}
  .left_btn, .right_btn{ width: 40px; height: 50px; background: #00ad4f;/*opacity: 0.9;filter:alpha(opacity=90); */cursor: pointer; color: #fff; line-height: 45px; font-size: 30px; text-align: center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none; box-shadow: inset 0 -4px 0 #009842}
  .left_btn{ float: left;border-radius:0 5px 5px 0px;}
  .right_btn{ float: right;border-radius:5px 0px 0px 5px;}



三、个人总结😊

一套合格的网页应该包含(具体可根据个人要求而定)

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

四、更多干货🚀

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

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

3.以上内容技术相关问题😈欢迎一起交流学习👇🏻👇🏻👇🏻🔥 `

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