基于HTML+CSS+JavaScript制作一个介绍自己家乡河池主题的网站,排版整洁,内容丰富,主题鲜明

本文主要是介绍基于HTML+CSS+JavaScript制作一个介绍自己家乡河池主题的网站,排版整洁,内容丰富,主题鲜明,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

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


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

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


文章目录🌰

  • 一、网页介绍📖
  • 一、网页效果🌌
  • 二、代码展示😈
    • 1.HTML结构代码 🧱
    • 2.CSS样式代码 🏠
  • 三、个人总结😊
  • 四、更多干货🚀

一、网页介绍📖

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>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css" /></head>
<body>
<div class="main" ><div  class="content12">
<div class="daohang"><div class="img"><img src="images/1.jpg"></div><ul>
<li class="active"><a href="index.html">首页</a>
</li>
<li ><a href="dilihuanjing.html">地理环境</a></li>
<li ><a href="ziranziyuan.html">自然资源</a></li>
<li ><a href="jingji.html">经济</a></li>
<li ><a href="fengjingmingsheng.html">风景名胜</a></li>
<li ><a href="xuexiaoliebiao.html">学校列表</a></li>
<li ><a href="geiwoliuyan.html">给我留言</a></li></ul></div>
</div>
<div class="clear"></div><div  class="content12">
<div class="jingji"><div class="img">
<img src="images/2.jpg"></div></div>
</div>
<div class="clear"></div><div  class="content12">
<div class="taitou"><div class="title"><div class="cntitle">经济            <div class="line line_l">&nbsp;</div><div class="line line_r">&nbsp;</div></div><p class="pytitle">JINGJI</p></div></div>
<div class="jingji"><div class="img">
<img src="images/2.jpg"></div></div>
</div>
<div class="clear"></div><div  class="content12">
<div class="taitou"><div class="title"><div class="cntitle">河池            <div class="line line_l">&nbsp;</div><div class="line line_r">&nbsp;</div></div><p class="pytitle">HECHI</p></div></div>
<div class="hc"><div class="desc">
<p>河池,简称“河”,是中华人民共和国广西壮族自治区地级市,地处广西西北边陲、云贵高原南麓,距离山水甲天下的桂林市314千米,境内地形多样,结构复杂,地势西北高东南低。地处低纬,属亚热带季风气候区,辖2区9县,总面积3.35万平方千米。2017年户籍人口429.87万人。</div><div class="list">
<img src="images/3.jpg" class="simg">
<img src="images/4.jpg" class="simg"></div><div class="clear"></div><div class="desc"></p><p>河池境内国家“五纵七横”国道主干线西南出海大通道穿境而过,是西南出海大通道的咽喉要塞,是“南贵昆经济区”、“泛珠三角经济圈”、和“东盟自由贸易区”人流、物流、资金流、信息流聚集交汇的枢纽。河池是广西实施西部大开发的重点区域。河池是一座以壮族为主的多民族聚居城市是广西壮族自治区少数民族聚居最多的地区之一。</div><div class="clear"></div>
<div class="img">
<img src="images/5.jpg">
</div></div>
</div>
<div class="clear"></div><div  class="content12">
<div class="taitou"><div class="title"><div class="cntitle">给我留言            <div class="line line_l">&nbsp;</div><div class="line line_r">&nbsp;</div></div><p class="pytitle">GEIWOLIUYAN</p></div></div>
<div class="lybd"><form id="form" class="form"><div><input  type="input" name="input"  class="input"  id="ziduan1" value="呢称" />
</div>
<div class="clear"></div><div><input  type="input" name="input"  class="input"  id="ziduan2" value="电话" />
</div>
<div class="clear"></div><div>
<input class="radio" type="radio" name="radio3" value=""  checked /><input class="radio" type="radio" name="radio3" value=""   /></div>
<div class="clear"></div><div>
<div class="title"></div>
<textarea    class="textarea" name="textarea" > 介绍</textarea>
</div>
<div class="clear"></div><button type="button"  class="submit" id="sub"   >提交</button></form>
</div>
</div>
<div class="clear"></div><div  class="content12">
<div class="dibu"><div class="desc">
河池 
</div></div>
</div>
<div class="clear"></div></div></body></html>

2.CSS样式代码 🏠


@charset "utf-8";
*{margin:0;padding:0;}
body{margin:0 auto}
.clear{ clear:both;}
a{color:#333;text-decoration:none;}
a:hover{text-decoration:underline;}
li{list-style-type:none;}
img{width:auto;max-width:100%;}
.main{width:1200px;margin:0 auto;overflow:visible;}.content12{width:1200px;margin:0 auto;}.daohang {
width:1200px;background:#CC9966;float:left;}
.daohang .img{
width:226px;
float:left;}.daohang .img img{
width:200px;height:90px;
float:left;
}.daohang ul{
width:934px;
background:#CC9966;float:left;
}.daohang ul li{
float:left;
width:100px; 
text-align:center;
height:90px;line-height:90px;color:#fff;position: relative;
}.daohang ul li a.active{
color:#fff;}
.daohang ul li a{
color:#fff;}.daohang li:hover a{
color:#fff;}.guanggaotupian
{
text-align:center;}
.guanggaotupian img
{
width:1200px;}.taitou .title {text-align: center;margin-left:10px;
margin-right:10px;
margin-bottom: 10px;
margin-top: 10px;
}.taitou .cntitle {color:#f22222;border: 1px solid #f22222;display: inline-block;zoom: 1;width: 200px;height: 40px;line-height: 40px;top: 0px;z-index: 99;font-size: 24px;position: relative;
}
.taitou .pytitle {width: 100%;height: 33px;line-height: 33px;font-size: 16px;color: #8F9193;
}.taitou i {height: 4px;margin: 10px auto;width: 55px;display: block;
}.taitou .line {
width: 110px;height: 1px;background:#f22222;position: absolute;top: 20px;}.taitou .line_l {left: -110px;
}.taitou .line_r {right: -110px;
}.hc 
{
width:1200px;    text-align: justify;}
.hc .text
{
padding:10px;
}.hc  .img
{text-align:center;
}.hc  .desc
{
padding:10px;
text-align:left;
float:left;
text-align: justify;
}
.hc  .list
{
text-align:center;
}.hc  .img
{
margin:10px auto;}
.hc  img
{
height:450px;}.hc  .simg
{
float:left;
width:570px;margin:10px;height:300px;
}.lybd 
{
width:1200px;text-align:left;
margin:0 auto;}.lybd form
{
line-height:40px;border-bottom-color:#000000;border-bottom-style:dashed;border-bottom-width:0px;border-top-color:#000000;border-top-style:dashed;border-top-width:0px;border-left-color:#000000;border-left-style:dashed;border-left-width:0px;border-right-color:#000000;border-right-style:dashed;border-right-width:0px;
}
.lybd select{
text-align:left;
margin:0px 10px;
overflow:hidden;
vertical-align:middle;
height:40px;height:40px;line-height:40px;border-bottom-color:#999999;border-bottom-style:dashed;border-bottom-width:1px;border-top-color:#999999;border-top-style:dashed;border-top-width:1px;border-left-color:#999999;border-left-style:dashed;border-left-width:1px;border-right-color:#999999;border-right-style:dashed;border-right-width:1px;
}.lybd checkbox,radio{
text-align:left;
margin:0px 10px;overflow:hidden;
vertical-align:middle;
height:40px;height:40px;line-height:40px;border-bottom-color:#999999;border-bottom-style:dashed;border-bottom-width:1px;border-top-color:#999999;border-top-style:dashed;border-top-width:1px;border-left-color:#999999;border-left-style:dashed;border-left-width:1px;border-right-color:#999999;border-right-style:dashed;border-right-width:1px;
}.lybd input{
text-align:left;
margin:0px 10px;
overflow:hidden;
vertical-align:middle;
height:40px;line-height:40px;border-bottom-color:#999999;border-bottom-style:dashed;border-bottom-width:1px;border-top-color:#999999;border-top-style:dashed;border-top-width:1px;border-left-color:#999999;border-left-style:dashed;border-left-width:1px;border-right-color:#999999;border-right-style:dashed;border-right-width:1px;}.lybd textarea{
text-align:left;
margin:0px 10px;
overflow:hidden;
vertical-align:middle;
height:40px;line-height:40px;border-bottom-color:#999999;border-bottom-style:dashed;border-bottom-width:1px;border-top-color:#999999;border-top-style:dashed;border-top-width:1px;border-left-color:#999999;border-left-style:dashed;border-left-width:1px;border-right-color:#999999;border-right-style:dashed;border-right-width:1px;}.lybd .title
{
margin:0px 10px;
}
.lybd button{
margin:10px 0px  0px 10px;
text-align:center;
line-height:40px;height:40px;line-height:40px;border-bottom-color:#999999;border-bottom-style:dashed;border-bottom-width:1px;border-top-color:#999999;border-top-style:dashed;border-top-width:1px;border-left-color:#999999;border-left-style:dashed;border-left-width:1px;border-right-color:#999999;border-right-style:dashed;border-right-width:1px;
}.lybd .form{
width:1168px;border-radius:25px;
padding:15px;
margin:0 auto;
}
.lybd .input{
width:1140px;margin-bottom:10px;
padding-left:10px;
color:#999999;
}
.lybd .checkbox{
width:auto;}
.lybd .radio{
width:auto;
}
.lybd .select{
width:1150px;}
.lybd .textarea{
width:1150px;height:130px;
color:#999999;
}
.lybd .submit{
width:1150px;}.dibu .desc
{text-align:center;color:#ffffff;
background:#CC9966;padding:20px 0px;
margin-top:10px;
}.dibu img
{}.dilihuanjingliebiao ul
{
width:1200px;}
.dilihuanjingliebiao ul li{
width:280px;
float:left;
padding:10px;
text-align:center;
}.dilihuanjingliebiao ul li:hover{
}.dilihuanjingliebiao ul li img
{
width:280px;height:200px;display:block;}
.dilihuanjingliebiao ul li .text{}
.dilihuanjingliebiao ul li .desc{
padding:10px 0px;
}
.dilihuanjingliebiao ul li .title{padding:10px 0px;}.ziranziyuanliebiao table
{
width:1180px;}.ziranziyuanliebiao table .img
{
width:130px;height:200px;}
.ziranziyuanliebiao table .img img
{
width:120px;padding:5px;
height:190px;}.ziranziyuanliebiao table   .title{margin:10px 0px;
font-weight:bold;
font-size:16px;
}
.ziranziyuanliebiao table   .desc
{
width:130px;text-align:left;padding:5px;
}.jingjiliebiao ul
{
width:1200px;float:left;
}
.jingjiliebiao ul li
{
width:580px;
padding:10px;
float:left;
}
.jingjiliebiao ul li .img
{
width:280px;padding:0px  5px;
height:210px;float:left;
}
.jingjiliebiao ul li img
{
width:280px;height:210px;}.jingjiliebiao ul li .desc
{
width:280px;height:200px;overflow:hidden;float:left;
text-align:left;
padding:5px;
}.fengjingmingshengliebiao ul
{
width:1200px;float:left;
}
.fengjingmingshengliebiao ul li
{
width:580px;
padding:10px;
float:left;
}
.fengjingmingshengliebiao ul li .img
{
width:280px;padding:0px  5px;
height:210px;float:left;
}
.fengjingmingshengliebiao ul li img
{
width:280px;height:210px;}.fengjingmingshengliebiao ul li .desc
{
width:280px;height:200px;overflow:hidden;float:left;
text-align:left;
padding:5px;
}.xuexiaoliebiaoliebiao ul
{
width:1200px;float:left;
}
.xuexiaoliebiaoliebiao ul li
{
width:580px;
padding:10px;
float:left;
}
.xuexiaoliebiaoliebiao ul li .img
{
width:280px;padding:0px  5px;
height:210px;float:left;
}
.xuexiaoliebiaoliebiao ul li img
{
width:280px;height:210px;}.xuexiaoliebiaoliebiao ul li .desc
{
width:280px;height:200px;overflow:hidden;float:left;
text-align:left;
padding:5px;
}.liuyanbiaodan 
{
width:1200px;text-align:left;
margin:0 auto;}.liuyanbiaodan form
{
line-height:40px;border-bottom-color:#000000;border-bottom-style:dashed;border-bottom-width:0px;border-top-color:#000000;border-top-style:dashed;border-top-width:0px;border-left-color:#000000;border-left-style:dashed;border-left-width:0px;border-right-color:#000000;border-right-style:dashed;border-right-width:0px;
}
.liuyanbiaodan select{
text-align:left;
margin:0px 10px;
overflow:hidden;
vertical-align:middle;
height:40px;height:40px;line-height:40px;border-bottom-color:#999999;border-bottom-style:dashed;border-bottom-width:1px;border-top-color:#999999;border-top-style:dashed;border-top-width:1px;border-left-color:#999999;border-left-style:dashed;border-left-width:1px;border-right-color:#999999;border-right-style:dashed;border-right-width:1px;
}.liuyanbiaodan checkbox,radio{
text-align:left;
margin:0px 10px;overflow:hidden;
vertical-align:middle;
height:40px;height:40px;line-height:40px;border-bottom-color:#999999;border-bottom-style:dashed;border-bottom-width:1px;border-top-color:#999999;border-top-style:dashed;border-top-width:1px;border-left-color:#999999;border-left-style:dashed;border-left-width:1px;border-right-color:#999999;border-right-style:dashed;border-right-width:1px;
}.liuyanbiaodan input{
text-align:left;
margin:0px 10px;
overflow:hidden;
vertical-align:middle;
height:40px;line-height:40px;border-bottom-color:#999999;border-bottom-style:dashed;border-bottom-width:1px;border-top-color:#999999;border-top-style:dashed;border-top-width:1px;border-left-color:#999999;border-left-style:dashed;border-left-width:1px;border-right-color:#999999;border-right-style:dashed;border-right-width:1px;}.liuyanbiaodan textarea{
text-align:left;
margin:0px 10px;
overflow:hidden;
vertical-align:middle;
height:40px;line-height:40px;border-bottom-color:#999999;border-bottom-style:dashed;border-bottom-width:1px;border-top-color:#999999;border-top-style:dashed;border-top-width:1px;border-left-color:#999999;border-left-style:dashed;border-left-width:1px;border-right-color:#999999;border-right-style:dashed;border-right-width:1px;}.liuyanbiaodan .title
{
margin:0px 10px;
}
.liuyanbiaodan button{
margin:10px 0px  0px 10px;
text-align:center;
line-height:40px;height:40px;line-height:40px;border-bottom-color:#999999;border-bottom-style:dashed;border-bottom-width:1px;border-top-color:#999999;border-top-style:dashed;border-top-width:1px;border-left-color:#999999;border-left-style:dashed;border-left-width:1px;border-right-color:#999999;border-right-style:dashed;border-right-width:1px;
}.liuyanbiaodan .form{
width:1168px;border-radius:25px;
padding:15px;
margin:0 auto;
}
.liuyanbiaodan .input{
width:1140px;margin-bottom:10px;
padding-left:10px;
color:#999999;
}
.liuyanbiaodan .checkbox{
width:auto;}
.liuyanbiaodan .radio{
width:auto;
}
.liuyanbiaodan .select{
width:1150px;}
.liuyanbiaodan .textarea{
width:1150px;height:130px;
color:#999999;
}
.liuyanbiaodan .submit{
width:1150px;}

三、个人总结😊

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

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

四、更多干货🚀

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

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

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

这篇关于基于HTML+CSS+JavaScript制作一个介绍自己家乡河池主题的网站,排版整洁,内容丰富,主题鲜明的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/322600

相关文章

Java实现检查多个时间段是否有重合

《Java实现检查多个时间段是否有重合》这篇文章主要为大家详细介绍了如何使用Java实现检查多个时间段是否有重合,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录流程概述步骤详解China编程步骤1:定义时间段类步骤2:添加时间段步骤3:检查时间段是否有重合步骤4:输出结果示例代码结语作

Java中String字符串使用避坑指南

《Java中String字符串使用避坑指南》Java中的String字符串是我们日常编程中用得最多的类之一,看似简单的String使用,却隐藏着不少“坑”,如果不注意,可能会导致性能问题、意外的错误容... 目录8个避坑点如下:1. 字符串的不可变性:每次修改都创建新对象2. 使用 == 比较字符串,陷阱满

Java判断多个时间段是否重合的方法小结

《Java判断多个时间段是否重合的方法小结》这篇文章主要为大家详细介绍了Java中判断多个时间段是否重合的方法,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录判断多个时间段是否有间隔判断时间段集合是否与某时间段重合判断多个时间段是否有间隔实体类内容public class D

IDEA编译报错“java: 常量字符串过长”的原因及解决方法

《IDEA编译报错“java:常量字符串过长”的原因及解决方法》今天在开发过程中,由于尝试将一个文件的Base64字符串设置为常量,结果导致IDEA编译的时候出现了如下报错java:常量字符串过长,... 目录一、问题描述二、问题原因2.1 理论角度2.2 源码角度三、解决方案解决方案①:StringBui

Java覆盖第三方jar包中的某一个类的实现方法

《Java覆盖第三方jar包中的某一个类的实现方法》在我们日常的开发中,经常需要使用第三方的jar包,有时候我们会发现第三方的jar包中的某一个类有问题,或者我们需要定制化修改其中的逻辑,那么应该如何... 目录一、需求描述二、示例描述三、操作步骤四、验证结果五、实现原理一、需求描述需求描述如下:需要在

Java中ArrayList和LinkedList有什么区别举例详解

《Java中ArrayList和LinkedList有什么区别举例详解》:本文主要介绍Java中ArrayList和LinkedList区别的相关资料,包括数据结构特性、核心操作性能、内存与GC影... 目录一、底层数据结构二、核心操作性能对比三、内存与 GC 影响四、扩容机制五、线程安全与并发方案六、工程

部署Vue项目到服务器后404错误的原因及解决方案

《部署Vue项目到服务器后404错误的原因及解决方案》文章介绍了Vue项目部署步骤以及404错误的解决方案,部署步骤包括构建项目、上传文件、配置Web服务器、重启Nginx和访问域名,404错误通常是... 目录一、vue项目部署步骤二、404错误原因及解决方案错误场景原因分析解决方案一、Vue项目部署步骤

JavaScript中的reduce方法执行过程、使用场景及进阶用法

《JavaScript中的reduce方法执行过程、使用场景及进阶用法》:本文主要介绍JavaScript中的reduce方法执行过程、使用场景及进阶用法的相关资料,reduce是JavaScri... 目录1. 什么是reduce2. reduce语法2.1 语法2.2 参数说明3. reduce执行过程

如何使用Java实现请求deepseek

《如何使用Java实现请求deepseek》这篇文章主要为大家详细介绍了如何使用Java实现请求deepseek功能,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录1.deepseek的api创建2.Java实现请求deepseek2.1 pom文件2.2 json转化文件2.2

Java调用DeepSeek API的最佳实践及详细代码示例

《Java调用DeepSeekAPI的最佳实践及详细代码示例》:本文主要介绍如何使用Java调用DeepSeekAPI,包括获取API密钥、添加HTTP客户端依赖、创建HTTP请求、处理响应、... 目录1. 获取API密钥2. 添加HTTP客户端依赖3. 创建HTTP请求4. 处理响应5. 错误处理6.