HTML静态网页作业——澳门英文旅游网站设计与实现HTML+CSS+JavaScript

本文主要是介绍HTML静态网页作业——澳门英文旅游网站设计与实现HTML+CSS+JavaScript,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

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


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

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

文章目录🌰

  • 一、网站题目👨‍🎓
  • 二、网站描述✍️
  • 三、网站介绍📖
  • 四、网站效果🌐
  • 五、网站代码制作部分 📕
    • HTML结构代码🧱
    • CSS样式代码🏡
  • 六、遇到问题及如何解决🔍
  • 七、实训总结😊
  • 八、更多干货🎁


一、网站题目👨‍🎓

🚀 旅游景点介绍、旅游风景区、家乡介绍、等网站的设计与制作。


二、网站描述✍️

旅游景点介绍、旅游风景区是一个介绍简介、行政区划、地理环境、自然环境、教育事业、体育事业、旅游景点、城市荣誉等等。网站集中主要展示了的地方风土人情,并通过访客留言,增加游客的互动体验。同时,地方旅游网站里的每一个网页都采用了统一的设计风格,以加强城市整体面貌统一的宣传效果。最重要的是做出旅游网站独特的风格,更能吸引浏览者的眼球。


三、网站介绍📖

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

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

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

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

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


四、网站效果🌐

网站设计制作的重点是对网页整体设计的布局和对网页整体内容的选题。
网站设计方面:计划实现简洁大气的网页设计效果。
网站功能方面:计划实现各个页面之间的链接跳转功能、鼠标悬停在文字上的变色功能、简单的首页动态图片切换功能、简单的表单提交功能。

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


五、网站代码制作部分 📕

(1)网站首页布局确定好各个板块的内容,并使用了DIV+CSS布局。另外首页使用到的知识主要有图片插入、图片动态切换、导航条、利用CSS固定字体、文字大小、文字颜色、背景颜色。

(2)页面使用了DIV+CSS布局,使用到的知识主要有图片插入、导航条、利用CSS固定字体、文字大小、文字颜色、背景颜色。

(3)表单部分页面使用了DIV+CSS布局,使用到的知识主要有运用了form表单、input文本框和input提交按钮,完成表单信息收集。利用CSS设置input提交按钮文字大小和颜色。

HTML结构代码🧱

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Macao travel</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="web">
<div class="top">
<div class="logo"><img src="images/logo.jpg" /></div>
<div class="nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">Introduction</a></li>
<li><a href="scenery.html">Scenery</a></li>
<li><a href="specialty.html">Specialty</a></li>
<li><a href="message.html">Message</a></li>
</ul>
</div>
<div class="sous">
<form>
<input class="inut" />
<button class="btn"></button>
</form>
</div>
</div><div class="banner">
<img src="images/banner.jpg" />
</div><div class="tit">Introduction to Macao</div>
<div class="tit2">My trip to Macau</div>
<div class="bx01">
<div class="bx01-left"><img src="images/img01.jpg"></div>
<div class="bx01-right">
<p>Macau, the Macau Special Administrative Region of the People's Republic of China. It is bounded by Zhuhai, Guangdong Province to the north, Wan Chai and Hengqin in Zhuhai to the West, and Hong Kong to the east, 60 kilometres away, and the south China Sea to the south.</p>
<p>On December 1,1887, Portugal and the Qing government signed the draft Treaty of Sino-portuguese Conference and the draft Treaty of Sino-Portuguese Treaty of Peking Macao was formally occupied and colonized by diplomatic protocol. On 20 December 1999, the Chinese government resumed the exercise of sovereignty over Macao. After more than 400 years of European civilization, the coexistence of Eastern and Western cultures makes Macao a unique city, leaving a large number of historical and cultural relics. The Historic Centre of Macau officially became a world cultural heritage site on July 15,2005. After Macau's return to China, its economy grew faster and more prosperous than ever, a success story for the One Country, Two Systems.</p>
</div>
</div>
<div class="tit">Beautiful scenery</div>
<div class="tit2">My trip to Macau</div>
<div class="bx02">
<div class="bx02-ner">
<div class="left">
<p>It's beautiful. The perfect combination of modern city and classical architecture style.</p>
<img src="images/box01.jpg">
</div>
<div class="right">
<img src="images/box02.jpg">
<img class="mar20" src="images/box03.jpg">
</div>
</div>
</div><div class="foot">
<p>Copyright@2020 Macao travel.All Rights Reserved.</p>
<p>My trip to Macau</p>
</div></div>
<embed src="images/aomen.mp3" autostart="true" loop="true" hidden="true"></embed>
</body>
</html>

CSS样式代码🏡


body{ margin:0 auto; font-size:12px; font-family: Arial, Helvetica, sans-serif; line-height:22px; color:#333; background:#e0ecfa;  }
div,p,input,li,h1,h2,h3,h4,h5{ height:auto; margin:0; padding:0px;vertical-align:middle ;}
li{ list-style:none;}
a{ text-decoration:none; color:#000;}
img{ border:0; margin:0; padding:0;}
.web{width:1140px;height:auto;overflow:hidden;margin:0 auto;background:#FFF;padding:0px 30px;}
.top{height:55px;padding-top:15px;}
.logo{width:116px;height:39px;float:left;margin-right:50px;}
.nav{width:720px;height:39px;float:left;}
.nav ul{padding:0px;margin:0;}
.nav ul li{height:39px;line-height:39px;float:left;margin:0px 20px;}
.nav ul li a{font-size:18px;color: #000;}
.sous{width:140px;height:39px;float:right;}
.inut{width:110px;height:39px;border:none;border-bottom: 1px solid #000;float:left;}
.btn{width:30px;height:30px;background:url(../images/btn.jpg) no-repeat;border:none;margin-top:10px;	}
.banner{width:1140px;height:400px;margin-bottom:25px;}.tit{
height: 60px;
line-height: 60px;
padding-left: 20px;
font-size: 26px;
color: #464543;
text-align: center;
width: 500px;
margin: 0 auto;
border-bottom: #5990b9 1px solid;}
.tit2{height:30px;line-height:30px;font-size:14px;text-align:center;color:#333;margin-bottom: 20px;}
.bx01{ width:100%; height:354px; margin-bottom:20px; }
.bx01-left{ width:400px; height:354px; float:left; margin-right:20px; }
.bx01-right{ width:720px; height:354px; float:left;}
.bx01-right p{line-height:30px;
font-size: 16px;
color: #221e1f;
text-indent: 2em;
margin: 0px;}
.bx02{ width:1140px; height:470px;}
.bx02-ner{ width:1140px; height:420px; margin:0 auto;}
.bx02-ner .left{ width:700px; height:420px; margin-right:20px;float:left; }
.bx02-ner .left p{  font-size:16px; text-align:center; height:40px; line-height:40px;}
.bx02-ner .right{ width:420px; height:420px; float:left;}
.mar20{ margin-top:20px;}
.foot{height:123px;background:#588fb8;padding-top:15px;}
.foot p{height:30px;line-height:30px;font-size:14px;color:#FFF;text-align:center;}
.banner2{width:1140px;height:240px;margin-bottom:25px;}
.title {height: 44px;line-height: 30px;padding-left: 30px;font-size: 18px;margin-bottom:30px;border-bottom: #999 2px solid;font-weight: bold;text-align:center;
}	
.conter{width:1140px;height:auto;overflow:hidden;margin:0 auto;}	
.abt{ width:100%; min-height:500px; height:auto; overflow:hidden; margin-bottom:30px;}
.shipin{ width:600px; height:400px; margin:0 auto;}	
.liuy{height:450px;}
.liuy-left {width: 590px;height:450px;float: left;background: url(../images/box12-1.jpg) no-repeat;
}
.liuy-right {width: 550px;height: 450px;float: left;
}
.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;
}
.l-anniu {width: 150px;height: 55px;background: #217fc5;text-align: center;line-height: 50px;font-size: 14px;color: #FFF;margin: 0 auto;margin-top: 45px;margin-bottom: 97px;
}	
.jies {width: 1140px;margin: 0 auto;margin-top: 0px;margin-bottom: 0px;margin-top: 20px;margin-bottom: 50px;
}
.lv-box{  height:225px; padding:20px 0px;}
.lv-box img{ width:300px; height:203px; float:left; margin-right:20px;}
.lv-box-r{ width:820px; height:225px; float:left;}
.lv-box .lv-tit{ font-size:16px; height:40px; line-height:40px; font-weight:bold;}
.lv-box p{ font-size:14px; line-height:30px; float:left; text-indent:2em;}
.lv-box a{ color:#000;}
.lv-box span{ height:50px; line-height:50px; float:right; margin-right:20px;}
.lv-box span a{ color:#F00;}	
.ncontu {
line-height: 22px;
padding: 0px 12px;
color: #464646;
height: 470px;
width: 1140px;
}
.ncontu ul {padding:0px;	
}
.ncontu ul li {width: 260px;  float: left; height: 280px; overflow:hidden;margin:0px 10px;text-align:center;
}
.ncontu ul li p{line-height:30px;font-size:14px;}
.nr {width: 1140px;height: auto;overflow: hidden;background: #FFF;padding-top: 20px;padding-bottom: 20px;
}
.llbx1{ height:250px; }
.llbx1 img{ margin:0px 20px; float:left; }
.llbx1 .wenzi{ width:800px; float:left; }
.llbx1 .wenzi p{ font-size:16px; line-height:30px; text-indent:2em;}
.llbx2{height:250px; }
.llbx2 p{ font-size:16px; line-height:30px;}
.llbx2 img{ float:left; margin:0px 20px;}
.llbx2 .wenzi{ width:650px;  float:left; margin-left:20px;}
.llbx2 .wenzi p{ font-size:16px; line-height:30px; text-indent:2em;}
.neir{ width:1140px; height:auto;
overflow:hidden;
margin-bottom:30px;}
.neir img{ float:right; margin-left:20px;}
.neir p{ text-indent:2em; line-height:30px; margin-bottom:20px; font-size:16px;}

六、遇到问题及如何解决🔍

实训中遇到得困难不少,比如如何收集适合网页的图片素材、如何让网页的配色看着更自然更舒适、如何用PS裁剪大小合适的图片、以及制作表单时候如何设计等等,最后,通过上网查询和请教别人得到了很好的解决。


七、实训总结😊

通过这次网页设计制作实训,能够灵活的运用到所学的知识和技巧制作简单的网页,掌握了个人网站建设的技巧和基本网站建设的过程。对于用Dreamweaver、vscode、hbuider等制作网页更为得心应手。实训过程中我尽量充分利用老师教过的知识,对所学知识进行了巩固。为了制作出更好的效果我也翻阅参考了其他资料,学习到了更多的网页处理技巧。制作网页的过程中遇到很多的问题,通过查找资料或询问同学都有得到解决。这次综合实训我的收获很大,学有所用,在实践的过程中学习巩固对知识能有更深的记忆。网页制作是一门很实用的学科,值得我以后进行更深入的学习。这次实训中我也体会到了自己掌握的技巧太少了,以至于很多想法都没能实现,在以后的学习过程中我要对网页制作有更深的了解,做出更为成熟的网页。


八、更多干货🎁

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

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

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

这篇关于HTML静态网页作业——澳门英文旅游网站设计与实现HTML+CSS+JavaScript的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



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

相关文章

网页解析 lxml 库--实战

lxml库使用流程 lxml 是 Python 的第三方解析库,完全使用 Python 语言编写,它对 XPath表达式提供了良好的支 持,因此能够了高效地解析 HTML/XML 文档。本节讲解如何通过 lxml 库解析 HTML 文档。 pip install lxml lxm| 库提供了一个 etree 模块,该模块专门用来解析 HTML/XML 文档,下面来介绍一下 lxml 库

Vue3 的 shallowRef 和 shallowReactive:优化性能

大家对 Vue3 的 ref 和 reactive 都很熟悉,那么对 shallowRef 和 shallowReactive 是否了解呢? 在编程和数据结构中,“shallow”(浅层)通常指对数据结构的最外层进行操作,而不递归地处理其内部或嵌套的数据。这种处理方式关注的是数据结构的第一层属性或元素,而忽略更深层次的嵌套内容。 1. 浅层与深层的对比 1.1 浅层(Shallow) 定义

JVM 的类初始化机制

前言 当你在 Java 程序中new对象时,有没有考虑过 JVM 是如何把静态的字节码(byte code)转化为运行时对象的呢,这个问题看似简单,但清楚的同学相信也不会太多,这篇文章首先介绍 JVM 类初始化的机制,然后给出几个易出错的实例来分析,帮助大家更好理解这个知识点。 JVM 将字节码转化为运行时对象分为三个阶段,分别是:loading 、Linking、initialization

Spring Security 基于表达式的权限控制

前言 spring security 3.0已经可以使用spring el表达式来控制授权,允许在表达式中使用复杂的布尔逻辑来控制访问的权限。 常见的表达式 Spring Security可用表达式对象的基类是SecurityExpressionRoot。 表达式描述hasRole([role])用户拥有制定的角色时返回true (Spring security默认会带有ROLE_前缀),去

浅析Spring Security认证过程

类图 为了方便理解Spring Security认证流程,特意画了如下的类图,包含相关的核心认证类 概述 核心验证器 AuthenticationManager 该对象提供了认证方法的入口,接收一个Authentiaton对象作为参数; public interface AuthenticationManager {Authentication authenticate(Authenti

Spring Security--Architecture Overview

1 核心组件 这一节主要介绍一些在Spring Security中常见且核心的Java类,它们之间的依赖,构建起了整个框架。想要理解整个架构,最起码得对这些类眼熟。 1.1 SecurityContextHolder SecurityContextHolder用于存储安全上下文(security context)的信息。当前操作的用户是谁,该用户是否已经被认证,他拥有哪些角色权限…这些都被保

Spring Security基于数据库验证流程详解

Spring Security 校验流程图 相关解释说明(认真看哦) AbstractAuthenticationProcessingFilter 抽象类 /*** 调用 #requiresAuthentication(HttpServletRequest, HttpServletResponse) 决定是否需要进行验证操作。* 如果需要验证,则会调用 #attemptAuthentica

Spring Security 从入门到进阶系列教程

Spring Security 入门系列 《保护 Web 应用的安全》 《Spring-Security-入门(一):登录与退出》 《Spring-Security-入门(二):基于数据库验证》 《Spring-Security-入门(三):密码加密》 《Spring-Security-入门(四):自定义-Filter》 《Spring-Security-入门(五):在 Sprin

Java架构师知识体认识

源码分析 常用设计模式 Proxy代理模式Factory工厂模式Singleton单例模式Delegate委派模式Strategy策略模式Prototype原型模式Template模板模式 Spring5 beans 接口实例化代理Bean操作 Context Ioc容器设计原理及高级特性Aop设计原理Factorybean与Beanfactory Transaction 声明式事物

不懂推荐算法也能设计推荐系统

本文以商业化应用推荐为例,告诉我们不懂推荐算法的产品,也能从产品侧出发, 设计出一款不错的推荐系统。 相信很多新手产品,看到算法二字,多是懵圈的。 什么排序算法、最短路径等都是相对传统的算法(注:传统是指科班出身的产品都会接触过)。但对于推荐算法,多数产品对着网上搜到的资源,都会无从下手。特别当某些推荐算法 和 “AI”扯上关系后,更是加大了理解的难度。 但,不了解推荐算法,就无法做推荐系