1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > 基于html+css+javascript+jquery制作北京景点介绍7页 WEB静态旅游景点区主题网页设计与制作...

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

时间:2020-02-14 23:46:28

相关推荐

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

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

文章目录🌰

​​一、网页介绍📖​​​​一、网页效果🌌​​​​二、代码展示😈​​​​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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="/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>1</li><li>2</li></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-01</i></li>

<li>冰雪遇上老北京文化 84岁老翁点赞冬季旅游新模式<i>01-01</i></li>

<li>万达文华落户北京<i>01-01</i></li>

<li>"乡村振兴与北京旅游发展"主题活动在京举行<i>01-01</i></li>

<li>首届北京国际健康旅游博览会在京开幕<i>01-01</i></li>

<li>曹妃甸旅游招商推介会在北京召开<i>01-01</i></li>

<li>冬季这些京都美味,错过就再多等一年<i>01-01</i></li>

<li>北京推长城国家公园试点区建设 确定21个保护地<i>01-01</i></li>

<li>国内有哪些具有米其林水准的餐厅?<i>01-01</i></li>

<li>官方发布“吃在北京”旅游美食地图 推荐60家美食餐厅<i>01-01</i></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>

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; }

三、个人总结😊

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

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

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。