【我的家乡网页设计思路】(html+css+javascript)我的家乡新密 (15页)含课程设计

👨‍🎓学生HTML静态网页基础水平制作👩‍🎓,页面排版干净简洁。使用HTML+CSS页面布局设计,web大学生网页设计作业源码,这是一个不错的旅游网页制作,画面精明,排版整洁,内容丰富,主题鲜明,非常适合初学者学习使用, 这个实例比较全面,有助于同学的学习,本文将介绍如何通过从头开始设计个人网站并将其转换为代码的过程来实践设计。


【作者主页——🔥获取更多优质源码】

【学习资料/简历模板/面试资料/ 网站设计与制作】

【web前端期末大作业——🔥🔥毕设项目精品实战案例】


--- @[TOC](文章目录🌰)

一、网页介绍📖

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>
<head>
<title>我的家乡新密</title>
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Your Trip Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
		function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- //for-mobile-apps -->
<link rel="stylesheet" href="css/Infini.css">
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- js -->
<script src="js/jquery-1.11.1.min.js"></script>
<!-- //js -->
<link href='https://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Oswald:400,300,700' rel='stylesheet' type='text/css'>
<!-- start-smoth-scrolling -->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>

<script type="text/javascript">
	jQuery(document).ready(function($) {
		$(".scroll").click(function(event){		
			event.preventDefault();
			$('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
		});
	});
</script>
<!-- start-smoth-scrolling -->
</head>
	
<body>
	<header>
		<img src="img/download-2.png" alt="">
		<!-- 导航部分 -->
		<nav>
			<ul>
				<li><a href="index.html" class="active">首页</a></li>
				<li><a href="about.html">关于新密</a></li>
				<li><a href="classify.html">分类</a></li>
				<li><a href="intro.html">景点简介</a></li>
				<li><a href="#contact" class="scroll">联系我们</a></li>			
			</ul>
		</nav>
	</header>

<!-- portfolio -->
 <div id="fen"></div>
	<div class="portfolio">
		<div class="container">
			<h3><a href="index.html">分类</a></h3>
			<div class="portfolio-grids">
				<div class="sap_tabs">			
				<div id="horizontalTab" style="display: block; width: 100%; margin: 0px;">
					<ul class="resp-tabs-list">
					<li class="resp-tab-item"><span><a href="classify.html">全部</a></span></li>
						<li class="resp-tab-item"><span><a href="c1.html">标志建筑</a></span></li>
						<li class="resp-tab-item"><span><a href="c2.html">最受欢迎</a></span></li>
						<li class="resp-tab-item"><span><a href="c3.html">古代遗迹</a></span></li>					
					</ul>	
					<div class="clearfix"> </div>	
					<div class="resp-tabs-container">
							<!--<div class="tab-1 resp-tab-content">								
							<div class="main">
							<div class="view effect">
									<div class="img-top">
										<a href="images/9.jpg" rel="title" class="b-link-stripe b-animate-go  thickbox">
											<img src="images/9.jpg" class="img-responsive" alt="" />
											<div class="mask"></div>
											<div class="content">
												<span class="info" title="Full Image"> </span>
											</div>
										</a>
									</div>
								</div>
								<div class="view effect">
									<div class="img-top">
										<a href="images/10.jpg" rel="title" class="b-link-stripe b-animate-go  thickbox">
											<img src="images/10.jpg" class="img-responsive" alt="" />
											<div class="mask"></div>
											<div class="content">
												<span class="info" title="Full Image"> </span>
											</div>
										</a>
									</div>
								</div>
								<div class="view effect">
									<div class="img-top">
										<a href="images/12.jpg" rel="title" class="b-link-stripe b-animate-go  thickbox">
											<img src="images/12.jpg" class="img-responsive" alt="" />
											<div class="mask"></div>
											<div class="content">
												<span class="info" title="Full Image"> </span>
											</div>
										</a>
									</div>
								</div>	
								<div class="view effect">
									<div class="img-top">
										<a href="images/13.jpg" rel="title" class="b-link-stripe b-animate-go  thickbox">
											<img src="images/13.jpg" class="img-responsive" alt="" />
											<div class="mask"></div>
											<div class="content">
												<span class="info" title="Full Image"> </span>
											</div>
										</a>
									</div>
								</div>
								<div class="view effect">
									<div class="img-top">
										<a href="images/11.jpg" rel="title" class="b-link-stripe b-animate-go  thickbox">
											<img src="images/11.jpg" class="img-responsive" alt="" />
											<div class="mask"></div>
											<div class="content">
									
#right{
	right: 0;
}
#ul1{
	list-style-type: none;
	position: absolute;
	bottom:-30px;
	/*相对于ul父级宽度百分比*/
	left: 50%;
	transform: translate(-50%,0);
	/*border: 1px solid red;*/
}
#ul1 li{
   background-color: gray;
   height: 20px;
   width: 20px;
   color: white;
   border-radius: 50%;
   text-align: center;
   float: left;
   line-height: 20px;
   margin: 0 5px;
   	
}
/*默认选中第一个分页符*/
#ul1 li:nth-child(1){
	background-color: red;
}
/*message*/
.message{
	background:rgb(0,0,0);
	position: absolute;
	z-index: 22;
	bottom: 0;
	height: 35px;
	width:100%;
	overflow: hidden;
	opacity: 0.5;
	filter:alpha(opacity=50);
}
.message p{
	width: 100%;
	text-align: center;
	color: #f2f2f2;
	line-height: 35px;
	position: absolute;
	top: 35px;
	display: none;
}
/*网站的中间部分*/
.center{
	width: 80%;
	/*border: 1px solid red;*/
	margin: 0 auto;
	margin-top: 130px;
}

.infor{
	margin-top: 30px;
}
.infor p{
	/*设置首行缩进*/
	text-indent: 2rem;
	font-size: 0.9rem;
	color: rgb(102,102,102);
	line-height: 1.4rem;
	border-top: 2px solid #ddd;
	border-bottom: 2px solid #ddd;
	padding: 3% 0;
	font-family:  STKaiti, "微软雅黑";
}
/*logo图片部分*/
.parner{
	text-align: center;
	padding: 2% 0;
}
.parner img{
    width: 60px;
    margin: 0 0.5%;
}
/*设置映纷创意作品集*/
.works{
	/*使用弹性布局*/
	display: flex;
	/*设置子元素允许换行显示*/
	flex-wrap:wrap;
	justify-content:center;
}
.works > a{
	
	display: block;
	width: 30%;
	text-decoration: none;
	/*border: 1px solid blue;*/
	border-radius: 5%;
	/*超出部分隐藏*/
	overflow: hidden;
	margin-bottom: 30px;
}
.picture{
	/*设置相对定位*/
	position: relative;
}
.works a img{
	width: 100%;
	vertical-align: top;
}
/*阴影*/
.picture .bg{
      position: absolute;
      left: 0;
      top: 0;
      background-color: rgba(0,0,0,0.5);
      width: 100%;
      height: 100%;
      color: white;
      text-align: center;
      /*隐藏*/
      display: none;
}
/*中间列设置左右边距*/
.works a:nth-child(3n+2){
    margin-left: 3%;
    margin-right: 3%;
}
.works a>p{
	text-align: center;
	background-color: white;
	color: rgb(102,102,102);
	padding: 10px;
	font-size: 0.9rem;
}
/*给a标签添加hover效果,bg背景显示*/
.works a:hover .bg{
     display: flex;
     flex-direction:column;
     justify-content:center;
}
.bg h2{
	font-size: 2rem;
}
.bg p{
	font-size: 0.9rem;
}
/*footer部分*/
footer{
	background-color: rgb(224,224,224);
	margin-top: 30px;
	display: flex;
	padding: 20px 0;
}
footer .left{
	width: 50%;
	border-right: 1px solid rgb(150,150,150);
	text-align: right;
	padding-right: 30px;
}
footer .left a{
	text-decoration: none;
}
footer .left a img{
	width: 29px;
}
footer .right {
	width: 50%;
	padding-left: 20px;
}
footer .right img{
	width: 124px;
	margin-bottom: 10px;
}
footer .right p{
	font-size: 0.6rem;
	line-height: 1.2rem;
	color: rgb(102,102,102);
}
/*媒体查询   <=460*/
@media screen and (max-width: 460px){
     .center{
     	width: 95%;
     }
     .works a{
     	width: 45%;
     }
     /*首先消除其它区间造成的影响*/
     .works a:nth-child(3n+2){
        margin-right: 0;
        margin-left: 0;
	}
     /*设置奇数项右边距*/
     .works a:nth-child(odd){
     	margin-right: 7%;
     }
     .company_logo img{
     	width: 40px;
     }
     .bg h2{
	font-size: 1.2rem;
     }
     .bg p{
     	font-size: 0.7rem;
     }
}


/*460--640 部分*/
@media screen and (min-width: 460px) and (max-width:640px){
    .center{
     	width: 95%;
     }
     .company_logo img{
     	width: 40px;
     }
     .bg h2{
	font-size: 1.2rem;
     }
     .bg p{
     	font-size: 0.7rem;
     }
     .works a>p{
     	font-size: 0.7rem;
     }
}

/*固定部分  640 - 840*/
@media screen and (min-width: 640px) and (max-width: 840px){
	.center{
		width: 640px;
	}
}
@media screen and (min-width: 1200px){
	.center{
		width: 1200px;
	}
}
body{margin:0px auto; padding:0px;}
/*以下是头部的css定义*/
#head{ width:100%; text-align:right; margin:0px auto; height:30px; background-color:#666;
float:top; }
#head ul,#head ul li,#head ul li a{ margin:0px; padding:0px;}
#head ul li{ display:inline-block; list-style:none;}
#head ul li a{ color:#666666; font-size:14px; text-decoration:none;}
img{ border:none;}
#head ul li a:hover{color:#666;}
.shuxian{border-right:1px solid #ccc;}



三、个人总结😊

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

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

四、更多干货🚀

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

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

3.

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值