• 基于html+css+javascript+jquery制作北京景点介绍7页 WEB静态旅游景点区主题网页设计与制作


    家乡旅游景点网页作业制作 网页代码运用了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 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" />
    <title> 旅游title>
    <link href="css/style.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="js/jquery1.42.min.js">script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js">script>
    head>
    <embed src="music.mp3" style="position: absolute;top: 0px;height: 50px;background: transparent;" />
    <body>
    <div class="warp">
    	<div id="slideBox" class="slideBox">
    			<div class="hd">
    				<ul><li>1li><li>2li>ul>
    			div>
    			<div class="bd">
    				<ul>
    					<li><img src="images/banner1.jpg" />li>
    					<li><img src="images/banner2.jpg" />li
    				>ul>
    			div>
    	div>
    	<script type="text/javascript">
    		jQuery(".slideBox").slide({mainCell:".bd ul",autoPlay:true});
    		script>
    	<div class="nav">
    		<ul>
    			<li> <a href="index.html" >网站首页a>li>
    			<li> <a href="lv.html" >旅游攻略a>li>
    			<li> <a href="jd.html" >景点墙a>li>
    			<li> <a href="cjy.html" >景点推荐a>li>
    		ul>
    	div>
    	<iframe width="1000px" name="main" src="user.html" height="50px">iframe>
    	<div class="content">
    		<h6>推荐景点h6>
    		<div class="temp1">
    			<div class="piclist">
    				<img src="images/list_1.png">
    				<p>八达岭长城VIP专线+古都专线...p>
    				<p class="p2">¥880/人起p>
    			div>
    			<div class="piclist">
    				<img src="images/list_2.png">
    				<p>大观园、海底世界、中央电视塔...p>
    				<p class="p2">¥360/人起p>
    			div>
    			<div class="piclist">
    				<img src="images/list_3.png">
    				<p>八达岭长城、明十三陵、鸟巢水...p>
    				<p class="p2">¥180/人起p>
    			div>
    			<div class="piclist">
    				<img src="images/list_4.png">
    				<p>天安门升国旗、故宫紫禁城...p>
    				<p class="p2">¥260/人起p>
    			div>
    		div>
    		<div class="temp2">
    	 	  <div class="left">
    	 		<h6>快速导航h6>
    	 		  <ul>
    	 			  <li><img src="images/icon1.png" width="80" height="80" alt=""/><p>精品旅游p>li>
    	 			  <li><img src="images/icon2.png" width="80" height="80" alt=""/><p>旅客须知p>li>
    	 			  <li><img src="images/icon3.png" width="80" height="80" alt=""/><p>同期旅游p>li>
    	 			  <li><img src="images/icon4.png" width="80" height="80" alt=""/><p>游客登记p>li>
    	 			  <li><img src="images/icon5.png" width="80" height="80" alt=""/><p>交通指南p>li>
    	 			  <li><img src="images/icon6.png" width="80" height="80" alt=""/><p>酒店预订p>li>
    	 			  <li><img src="images/icon7.png" width="80" height="80" alt=""/><p>旅游亮点p>li>
    	 			  <li><img src="images/icon8.png" width="80" height="80" alt=""/><p>旅游指南p>li>
    	 		  ul>
    		  div>
    		  <div class="right">
    		      <h6>旅游攻略h6>
    		      <ul>
    		      	<li>世界这么大,今年你去哪儿<i>01-01i>li>
    		      	<li>冰雪遇上老北京文化 84岁老翁点赞冬季旅游新模式<i>01-01i>li>
    		      	<li>万达文华落户北京<i>01-01i>li>
    		      	<li>"乡村振兴与北京旅游发展"主题活动在京举行<i>01-01i>li>
    		      	<li>首届北京国际健康旅游博览会在京开幕<i>01-01i>li>
    		      	<li>曹妃甸旅游招商推介会在北京召开<i>01-01i>li>
    		      	<li>冬季这些京都美味,错过就再多等一年<i>01-01i>li>
    		      	<li>北京推长城国家公园试点区建设 确定21个保护地<i>01-01i>li>
    		      	<li>国内有哪些具有米其林水准的餐厅?<i>01-01i>li>
    		      	<li>官方发布“吃在北京”旅游美食地图 推荐60家美食餐厅<i>01-01i>li>
    		      ul>
    		  div>
    		div>
    	  <div class="temp1">
    		<h6>景点墙h6>
    		  <ul class="jd jingdianimgs">
    			  <li><img src="images/jingdian1.jpg" width="240" height="150" alt=""/>li>
    			  <li><img src="images/jingdian2.jpg" width="240" height="150" alt=""/>li>
    			  <li><img src="images/jingdian3.jpg" width="240" height="150" alt=""/>li>
    			  <li><img src="images/jingdian4.jpg" width="240" height="150" alt=""/>li>
    			  <li><img src="images/jingdian5.jpg" width="240" height="150" alt=""/>li>
    		  ul>
    		div>
    	div>
    	<div class="footer">北京 div>
    div>
    <script type = "text/javascript">
    function validate(){
    	var username = document.getElementById("username").value;//username为id值
    	console.log(username)
        var password = document.getElementById("password").value;//document是一个HTML
        console.log(password)
        //DOM对象,代表当前文档
         if(username !== ''||password !== ''){
             alert("提交成功!");
         } else {
             alert("姓名或留言不能为空!");
    	 }
      }
    script>
    body>
    html>
    
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121

    2.CSS样式代码 🏠

    @charset "utf-8";
    /* CSS Document */
    *{margin: 0; padding:0; border: 0;}
    body{font-size: 14px; font-family:'微软雅黑', Microsoft Himalaya}
    ul li{list-style: none;}
    a{color: #333; text-decoration: none;}
    a:hover{color: brown;}
    .warp{width:1000px; margin: 0 auto; height:auto; overflow: hidden;}
    .banner{
    	
    }
    .footer{background: #343434; color: #fff; text-align: center;height:50px; line-height: 50px}
    .nav{
    	height: 40px;
    	background: #3b3b75;
    }
    .nav li{
    	float: left;
    	border-right:1px solid #a0acd8;
    	text-align: center;
    	width:248px;
    	color: #fff;
    	line-height: 40px;
    	
    }
    .nav li a{
    	color: #fff;
    	display: block;
    	font-size: 16px;
    	font-weight: 600;
    }
    .nav li a:hover{
    	background: #a0acd8;
    	color: #3b3b75
    }
    .user{
    	border: 1px solid #ddd;
    	background: #ececec;
    	height: 45px;
    	line-height: 45px;
    }
    
    .user span{
    	float: right;
    	padding-right:15px;
    }
    .userform{
    	padding-left:10px;
    	width:600px;
    	float: left;
    }.usertable{
    	width: 500px;
    	margin: 15px auto;
    }
    .usertable td{border: 1px solid #ccc; line-height: 35px; padding-left: 15px;}
    .usertable input{border: none;line-height: 35px;}
    
    .content h6{
    	border-bottom: 3px solid #63B7E3;
    	line-height: 35px;
    	font-size: 16px;
    }
    .temp1{height:auto; overflow: hidden;clear: both;}
    .piclist{
    	width:240px;
    	float: left;
    	margin: 10px 4px;
    	border: 1px solid #ccc;
    }
    .piclist img{width:238px; height:150px;padding:1px;}
    .piclist p{text-align: center;line-height: 24px;}
    .piclist p.p2{color: chocolate;}
    
    .temp2{background: #f5f5f5;height:350px; overflow: hidden;}
    .temp2 .left{width: 490px; float: left;}
    .temp2 .right{width: 490px; float: right;}
    .temp2 .left li{
    	float: left; 
    	margin: 15px 20px;
    }
    .temp2 .left li img{width:79px; height:79px;}
    .temp2 .left li p{line-height: 25px;text-align: center;}
    .temp2 .right li{
    	line-height: 26px;
    	border-bottom: 1px dashed #ccc;
    	list-style:disc;
    	margin-left: 25px;
    }
    .temp2 .right li i{float: right;color: brown;}
    .jd li{
    	margin: 9px;
    	height:180px;
    	float: left;
    }
    .jd li img{
    	width:176px;
    	height:176px;
    	border: 1px solid #ccc;
    	padding: 1px;
    }
    .content h1{font-size: 20px; line-height:50px; color: #333;}
    .page p{text-indent: 15px; line-height: 28px;}
    .bigImg{
    	float:left;
    	width:730px;
    	margin-right: 15px;
    }
    .bigImg img{
    	width:730px;
    	height:528px;
    }
    .smallImg{
    	float: right;
    	width:224px;
    }
    .smallImg Img{
    	border: 1px solid #ccc;padding: 1px; width:224px; height: 120px;margin-bottom: 10px
    }
    .page_txtlist{
    	width:800px;
    	margin:0 auto;
    }
    .page_txtlist li{
    	line-height:32px;
    	overflow:hidden;
    	text-indent:20px;
    	/*background: url(../img/li_2.gif) no-repeat 10px center;*/
    	border-bottom: 1px dashed #eee;
    }
    .page_txtlist li i{
    	font-style:normal;
    	float:right;
    	color:#5ea7e6;
    }
    .page_piclist li{
    	float:left;
    	width:200px;
    	border: 1px solid #ccc;
    	padding:4px;
    	margin-left:8px;
    	margin-bottom:10px;
    }
    .page_piclist li img{
    	width:200px;
    	height:160px ;
    }
    .page_pictxtlist .item {
    	border-bottom: 1px dashed #ccc;
    	margin: 14px 25px;
    	height: 100%;
    	padding-bottom: 15px;
    	margin-bottom: 12px;
    	overflow: hidden;
    	}
    .page_pictxtlist .item .img {
    	float: left;
    	display: inline;
    	width: 180px;
    	background: #eee;
    	height: 100px;
    	border: #ccc solid 1px;
    	padding: 3px;
    	overflow: hidden;
    }
    .page_pictxtlist .item .img img {
    	width: 180px;
    	height: 100px;
    }
    .page_pictxtlist .item .text {
    	float: right;
    	display: inline;
    	width: 650px;
    	overflow: hidden;
    }
    .page_pictxtlist .item .text .tit {
    	height: 38px;
    	line-height: 38px;
    	margin-top: 4px;
    	font-size: 14px;
    	font-weight: bold;
    	overflow: hidden;
    }	
    .mb25{margin-bottom: 25px;}
    
    .jingdianimgs img:hover{opacity: 0.8;}
    
    .slideBox{ width:1000px; height:230px; overflow:hidden; position:relative; }
    		.slideBox .hd{ height:15px; overflow:hidden; position:absolute; right:5px; bottom:5px; z-index:1; }
    		.slideBox .hd ul{ overflow:hidden; zoom:1; float:left;  }
    		.slideBox .hd ul li{ float:left; margin-right:2px;  width:15px; height:15px; line-height:14px; text-align:center; background:#fff; cursor:pointer; }
    		.slideBox .hd ul li.on{ background:#f00; color:#fff; }
    		.slideBox .bd{ position:relative; height:100%; z-index:0;   }
    		.slideBox .bd li{ zoom:1; vertical-align:middle; }
    		.slideBox .bd img{ width:1000px; height:230px; display:block;  }
    
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196

    三、个人总结😊

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

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

    四、更多干货🚀

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

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

    3.以上内容技术相关问题😈欢迎一起交流学习👇🏻👇🏻👇🏻🔥在这里插入图片描述

  • 相关阅读:
    CS5801|替代LT6711A|HDMI转DP转接线方案|HDMI转DP带供电芯片方案
    系统配置与性能评价>性能指标
    A. Trust Nobody
    鸟欲高飞先振翅,人求上进先读书 [泛型 泛型类 泛型方法 泛型接口 泛型通配符详解]
    使用Python导出hustoj题目提交代码结果(用于收集留言的题目)
    order模块给User模块发送http请求
    电脑重装系统后如何给系统磁盘扩容空间
    拼多多店铺搜索相关问题,为什么新品上架搜索不到
    BP神经网络算法基本原理,bp神经网络算法详解
    RFID技术与WMS仓储管理系统对接有什么优势
  • 原文地址:https://blog.csdn.net/weixin__BJ050106/article/details/126199945