【网页设计】基于HTML+CSS旅游网站网页作业制作

一、👨‍🎓网站题目


旅游,当地特色,历史文化,特色小吃等网站的设计与制作。

二、✍️网站描述


郴州旅游主题的网页 一共五个个页面
- 旅游网页使用html css js制作 有banana图
- 页面可以相互跳转 包含表单 三级页面
- 网页可以使用vscode hbuilder dw等打开修改
- 里面的图片和文字都可以替换为其他旅游网页
- 郴州旅游网页介绍了历史革命 地方特产 关于我们等
- html静态网页 没有复杂效果 布局简单 原创html网页设计 适合当作业使用

👨‍🎓静态网站的编写主要是用HTML DIV+CSS 等来完成页面的排版设计👩‍🎓,常用的网页设计软件有Dreamweaver、EditPlus、HBuilderX、VScode 、Webstorm、Animate等等,用的最多的还是DW,当然不同软件写出的前端Html5代码都是一致的,本网页适合修改成为各种类型的产品展示网页,比如美食、旅游、摄影、电影、音乐等等多种主题,希望对大家有所帮助。

三、📚网站介绍


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

📓网站程序方面:计划采用最新的网页编程语言HTML5+CSS3程序语言完成网站的功能设计。并确保网站代码兼容目前市面上所有的主流浏览器,已达到打开后就能即时看到网站的效果。

📘网站素材方面:计划收集各大平台好看的图片素材,并精挑细选适合网页风格的图片,然后使用PS做出适合网页尺寸的图片。

📒网站文件方面:网站系统文件种类包含:html网页结构文件、css网页样式文件、js网页特效文件、images网页图片文件;

📙网页编辑方面:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。
其中:
(1)📜html文件包含:其中index.html是首页、其他html为二级页面;
(2)📑 css文件包含:css全部页面样式,文字滚动, 图片放大等;

四、🌐网站效果

五、🪓 代码实现

🧱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/Untitled-2.css" rel="stylesheet" type="text/css" />
</head>

<body>
<!----网页开始------>
<div class="main">
<!----top开始------>
<div class="top">
<div class="logo"><img src="img/logo.png" /></div>
<div id="nav">
<ul>
<li><a href="Untitled-1.html">首页</a></li>
<li><a href="lishi.html">历史沿革</a></li>
<li><a href="diafng.html">地方特产</a></li>
<li><a href="guanyu.html">关于我们</a></li>
<li><a href="log.html">登录|注册</a></li>
</ul>
</div>
</div>
<div class="box" id="box">
    <div class="inner">
        <!--轮播图-->
        <ul>
            <li><a href="#"><img  src="img/bg.png" alt=""></a></li>         
        </ul>
 

    </div>
</div>
<div class="box01">
<div class="ner">
<img src="img/banquan01.png" style="height:300px;">
<div class="wenz">
<div class="tex">郴州</div>
<P>郴州市,湖南省辖地级市,别称“福城”,位于中华人民共和国华中地区,湖南省东南部,地处南岭山脉与罗霄山脉交错、长江水系与珠江水系分流的地带,素称湖南的“南大门”;地处亚热带气候带中,地势自东南向西北方向倾斜;总面积19387平方千米。截至2023年6月,郴州市辖2个区、8个县,代管1个县级市。至2023年末,郴州市常住人口460.05万人,城镇化率60.43%。</P>
</div>
</div>
</div>

<div class="box02">
<div class="wenzi">
<p>代置,郴县。隋开皇九年(589年),统为郴州。后,时称桂阳郡,时称郴州。“郴”字,意为林中之邑。郴州自古被誉为“九仙二佛之地”,是道教、佛教发展之福地。</p>
</div>
<img src="img/p1.png" style="width:210px; height:150px">
<img src="img/p2.png" style="width:210px; height:150px">
</div>
<div class="box3">
<div class="box3-tit">历史沿革<br>
<span>—— Health preservation ——</span>
</div>
<div class="nero">
<img src="img/img1.png" style="width:360px; height:242px;">

<div class="jies01">
<div class="tit">历史沿革 </div>
<P>三国吴甘露元年(265年),分桂阳郡南境的曲江、桂阳、阳山、含洭、浈阳等地置始兴郡,桂阳郡辖区缩小为郴县(今北湖区、苏仙区、桂阳县)、阳安县(今资兴市、汝城县、桂东县)、临武县、便县、南平县、耒阳县。
西晋建兴三年(315年),分设桂阳郡、平阳郡。
南朝陈天嘉元年(560年),又析桂阳郡地置卢阳郡。
隋开皇九年(589年),统为郴州。后,时称桂阳郡,时称郴州。</P>
<br>
<span><a href="#">更多&nbsp;→ </a> </span>
</div>

<img class="mar30 " src="img/img2.png" style="width:360px; height:242px;">
<div class="jies01 marl mart30">
<div class="tit coh">位置境域</div>
<P>郴州市位于湖南省东南部,罗霄山脉以西、南岭山脉北麓,介于东经112°14′~114°10′,北纬24°54′~26°51′之间。“北瞻衡岳之秀,南直五岭之冲”,东邻江西省吉安市、赣州市,南接广东省韶关市、清远市,西界永州市蓝山县、宁远县、新田县、祁阳县,北连衡阳市常宁市、耒阳市、衡南县、衡东县和株洲市攸县、茶陵县、炎陵县。东西宽194千米,南北长217千米,土地总面积19341.66平方千米,占湖南省国土总面积9.2%。</P>
<br>
<span><a href="#">更多&nbsp;→ </a> </span>
</div>
<img class="mar30 mart30" src="img/img3.png" style="width:360px; height:242px;">
<div class="jies01 mart30">
<div class="tit coh">地形地貌</div>
<P>郴州市位于湖南省东南部,地处南岭山脉与罗霄山脉交错、长江水系与珠江水系分流的地带。境内地貌复杂多样,其特点以山丘为主,岗平相当,水面较少。山地丘陵面积约占总面积的近四分之三。 [25]郴州境内总的地形地貌为东南面山系重叠,群山环抱;西部山势低矮,向北开口,中部为丘、平、岗交错。地势自东南向西北倾斜,东部是南北延伸的罗霄山脉,最高峰海拔2061.3米;南部是东西走向的南岭山脉,最高峰海拔1913.8米;西部是郴道盆地横跨,北部有醴攸盆地和茶永盆地深入,形成低平的地势,一般海拔200—400米,最低处海拔70米。</P>
<br>
<span><a href="#">更多&nbsp;→ </a> </span>
</div>

</div>


</div>


<div class="foot">
<p>湖南郴州</p>
</div>


</div>
</body>
</html>



💒CSS样式代码

@charset "utf-8";
body{ margin:0 auto; font-size:14px; font-family: "微软雅黑"; line-height:22px;    
background: url(../img/1.png) no-repeat center 0px;
background-position: center 0;
background-size: cover;
min-height: 100vh;
}
div,p,input,ul,li,img,h1,h2,h3{ height:auto; margin:0;; padding:0; vertical-align:middle ;}

li{ list-style:none;}

 a{color:#333;text-decoration:none;}

 a:link{ color:#333;}
 a:hover {color:#c50d0d;text-decoration:none;overflow:hidden;}
.main{ width:1200px; height:auto; overflow:hidden; min-height:1000px; margin:0 auto; background:rgba(255,255,255,0.2);}
.top{ width:100%; height:120px;}
.logo{ width: 202px;

height: 68px;

float: left;

margin-top: 30px;

margin-left: 40px;}

#nav{ width: 655px;
height: 50px;
margin: 0 auto;
margin-left: 10px;
float: right;
margin-top: 40px;
margin-right: 40px;}
#nav ul{ width:655px; height:50px; line-height:50px; font-size:14px;  margin:0 auto;}
#nav ul li{ width:125px; height:50px; line-height:50px; color:#FFF; float:left; text-align:center;}
#nav ul li a {
font-family: "微软雅黑";
font-size: 18px;
margin-left: 2px;
display: block;
color:#000;
}
 .box {
	width: 1200px;
	height: 400px;
	
        }
        .inner{
	width: 1200px;
	height: 400px;
	position: relative;
	overflow: hidden;
        }
        .inner img{
            width:1200px;
            height: 400px;
            vertical-align: top
        }
        .inner ul {
            width: 1000%;
            position: absolute;
            list-style: none;
            left:0;
            top: 0;
	    margin:0px;
	    padding:0px;
        }
        .inner li{
            float: left;
 
        }
 
        ol {
	position: absolute;
	height: 20px;
	right: 20px;
	bottom: 12px;
	text-align: center;
	padding: 5px;
        }
        ol li{
	display: block;
	width: 20px;
	height: 20px;
	line-height: 20px;
	background-color: #fff;
	margin: 5px;
	cursor: pointer; 
        }
        ol .current{
            background-color: red;
        }
        #arr{
	display: block;
        }
        #arr span{
	width: 30px;
	height: 40px;
	position: absolute;
	left: 14px;
	top: 156px;
	margin-top: -20px;
	background: #fff;
	cursor: pointer;
	line-height: 40px;
	text-align: center;
	font-weight: bold;
	font-family: '黑体';
	font-size: 30px;
	color: #000;
	opacity: 0.5;
	border: 1px solid #fff;
        }
        #arr #right {
	right: 18px;
	left: auto;
        }
.box01{ width:1140px; height:300px; padding:30px;} 
.box01 .ner{ height:300px;}
.box01 .ner img{ float:left}
.box01 .wenz{width:645px;height: 206px;background: #eeeeee;padding: 20px 30px;float: left;margin-top: 25px;}
.box01 .wenz .tex{ font-size:30px; color:#da251c; height:45px; line-height:45px; margin-bottom:10px;}
.box01 .wenz p{ font-size:14px; line-height:25px;}
.box02{ height:305px; padding:30px;}
.box02 .wenzi{ width:550px; height:170px; float: left; margin-top:60px;}
.box02 .wenzi p{line-height:40px; font-size:16px; text-indent:2em;}
.box02{ height:305px;}
.box02 img{ float:left; margin-left:50px;}
.box3{ width:1140px; height:750px; padding:30px; }
.box3-tit{ 
height: 90px;
font-size: 50px;
font-weight: bolder;
width: 100%;
text-align: center;
line-height: 40px;
font-family:Verdana, Geneva, sans-serif;}
.box3-tit span{ color:#8aaa3d; font-size:16px; font-family: Arial, Helvetica, sans-serif; line-height:60px;}
.nero{ width:1140px; height:516px;  margin-top:45px;}
.nero img{ float:left;}
.nero .jies01{ width:360px; height:242px; float:left; margin-left:30px;}
.nero .jies01 .tit{ color: #80b50f;
font-size: 18px;
font-weight: bold;
height:60px;
border-bottom: #b9b9b9 1px solid; margin-bottom:10px;}

.nero .jies01 span{ color:#82a81d; font-weight:bold;}
.mar30{ margin-left:30px; margin-right:0px;}
.marl{ margin-left:0px !important;}
.mart30{ margin-top:30px;}
.coh{ color:#010101 !important;}
.foot{ height:50px; margin:0 auto; line-height:50px; 
text-align:center; font-size:16px; background:#CCC; margin-top:30px; color:#000;}
.banner{ height:200px;}
.titile{
	width:328px;
	height:70px;
	background:url(../img/banner1.png) no-repeat;
	margin:0 auto;	
	margin-top: 20px;
	margin-bottom:20px;
	}
.titile h2{
	width:328px;
line-height: 70px;
font-size: 34px;
font-weight: normal;
text-align: center;}	
.jies {
	width: 1140px;
	margin: 0 auto;
	background:#FFF;
	padding:20px;
}
.jies img{  display:block; margin:0 auto; margin-top:20px; margin-bottom:20px;}

.jies p {
	text-indent: 2em;
	line-height: 25px;
	font-size: 14px;
}
.ncontu {
	width:1140px;
color:#464646;
height: 780px;
padding:30px;
}
.ncontu ul { 
	
}
.ncontu ul li {
width:340px;
height:300px;
float: left;
padding:20px;

}
.xtit{
height: 50px;
line-height:50px;
text-align:center;
font-size:20px;
font-weight: bold;
}
.jjie{ color:#171717; font-size:14px;}
.bx1{ height: auto; overflow:hidden; }
.bx1 img{ float:left; margin-right:54px;}
.bx1 h2{ margin-top: 50px;
line-height: 50px;
font-weight: normal;
font-size: 30px;
color: #aa7648;
margin-bottom: 20px;}
.bx1 h2 a{color: #aa7648;}
.bx1 h2 a:hover{color:#1f5fa7}
.bx1 .shuom{ width:500px; float:left;}
.bx1 p{ text-indent:2em; line-height:33px; font-size:16px;}
.bx1 p a{ color:#000;}
.bx1 span{ height:50px; line-height:50px; font-size:16px; }
.bx1 span a{color:#F00;}
.bx2{ height: auto; overflow:hidden; }
.bx2 img{ float:right; margin-left:54px;}
.bx2 .shuom{ width:500px; float:right;}
.bx2 h2{ margin-top: 50px;
line-height: 50px;
font-weight: normal;
text-align:right;
font-size: 30px;
color: #aa7648;
margin-bottom: 20px;}
.bx2 h2 a{color: #aa7648;}
.bx2 p{ text-indent:2em;float:right; line-height:33px; font-size:16px;}
.bx2 p a{ color:#000;}
.bx2 p a:hover{color:#1f5fa7}
.bx2 span{ height:50px; line-height:50px; font-size:16px; }
.bx2 span a{color:#F00;}
.box12{ width:100%; height:696px; margin:0 auto; margin-top:30px;}
.box12-left{ width:400px; height:696px; float:left; background:url(../img/box12-1.jpg) no-repeat;}
.box12-right{width: 720px;
height: 600px;
float: left;
}
.box12-tit span{ color:#8aaa3d; font-size:16px; font-family: Arial, Helvetica, sans-serif; line-height:60px;}
.box12-js{ width:695px; height:auto;margin:0 auto; overflow:hidden; margin-top:45px; text-align:center; line-height:30px; margin-bottom:40px;}
.login{ width:770px; height:200px;  margin:0 auto; }
.login input{ width:330px; height:49px; border:#cecccc 1px solid; float:left; margin-right:30px; margin-bottom:20px; padding-left:30px; font-size:16px;}
.l-anniu {
    width: 150px;
    height: 55px;
    background: #da251c;
    text-align: center;
    line-height: 50px;
    font-size: 14px;
    color: #FFF;
    margin: 0 auto;
    margin-top: 45px;
    margin-bottom: 97px;
}
.l-liuyan {
    width: 520px;
    margin: 0 auto;
}
.l-liuyan input{ width: 330px;
height: 30px;
border: #cecccc 1px solid;
float: left;
margin-right: 30px;
margin-bottom: 20px;
padding-left: 30px;
font-size: 16px;
float: left;}
.l-liuyan span{ float: left;
line-height: 30px;
font-size: 18px;
width: 120px;
}
.box5-js {
    width: 695px;
    height: auto;
    margin: 0 auto;
        margin-top: 0px;
        margin-bottom: 0px;
    overflow: hidden;
    margin-top: 45px;
    text-align: center;
    line-height: 30px;
    margin-bottom: 40px;
}
.yanxi{  width:1140px; margin:0 auto; margin:30px; padding-bottom:80px;}
.yanxi h2{ height:50px; line-height:50px; font-size:24px; margin-bottom:45px; text-align:center;}
.yanxi .neir{ width:1140px;
}
.yanxi .neir img{ float:right; margin-left:35px;}
.yanxi .neir p{ text-indent:2em; line-height:30px; margin-bottom:20px; font-size:16px;}
.meis{ width:1140px; height:300px;}
.meis img{ float:left; margin:20px 100px;}
.fydbx1{ width:1140px; height:300px; margin:30px;}
.fydbx1 img{ margin-right:30px; float:left;}
.fydbx1 h2{ line-height:45px; font-size:24px;  margin-bottom:10px; font-weight:normal;}
.fydbx1 p{ line-height:30px; text-indent:2em; font-size:16px;}
.ccbx2{ width:1140px; height:290px; margin:0 auto; margin:30px;}
.ccbx2 img{ margin-left:30px; float:right;}
.ccbx2 p{ line-height: 30px;
text-indent: 2em;
font-size: 16px;}




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


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

七、🎁更多干货

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

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

3.

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

  • 26
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值