家乡旅游景点网页作业制作 网页代码运用了DIV盒子的使用方法,如盒子的嵌套、浮动、margin、border、background等属性的使用,外部大盒子设定居中,内部左中右布局,下方横向浮动排列,大学学习的前端知识点和布局方式都有运用,CSS的代码量也很足、很细致,使用hover来完成过渡效果、鼠标滑过效果等,使用表格、表单补充模块,为方便新手学习页面中没有使用js有需要的可以自行添加。
⚽精彩专栏推荐
❤ 【作者主页——获取更多优质源码】
❤ 【学习资料/简历模板/面试资料/ 网站设计与制作】
❤ 【web前端期末大作业——毕设项目精品实战案例】
1 网页简介:此作品为学生个人主页网页设计题材,HTML+CSS 布局制作,web前端期末大作业,大学生网页设计作业源码,这是一个不错的网页制作,画面精明,代码为简单学生水平, 非常适合初学者学习使用。
2.网页编辑:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。
3.知识应用:技术方面主要应用了网页知识中的: Div+CSS、鼠标滑过特效、Table、导航栏效果、Banner、表单、二级三级页面等,视频、 音频元素 、Flash,同时设计了Logo(源文件)所需的知识点。
代码如下(示例):以下仅展示部分代码供参考~
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 rel="stylesheet" type="text/css" href="css/css.css">
head>
<body>
<center>
<table width="1024" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><img src="images/ad.jpg"/>td>
tr>
table>
<table width="100%" height="42" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="42" style="background:#291707; padding:0px;">
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:0px auto;">
<tr>
<td width="13%" height="42"><div align="center" class="STYLE6"><a href="index.html" class="STYLE2 aa">首页a>div>td>
<td width="13%" height="42"><div align="center" class="STYLE6"><a href="dili.html">地理环境a>div>td>
<td width="13%" height="42"><div align="center" class="STYLE6"><a href="lishi.html">历史沿革a>div>td>
<td width="12%" height="42"><div align="center" class="STYLE6"><a href="quhua.html">行政区划a>div>td>
<td width="13%" height="42"><div align="center" class="STYLE6"><a href="lvyou.html">旅游景点a>div>td>
<td width="13%" height="42"><div align="center" class="STYLE6"><a href="xinwen.html">新闻中心a>div>td>
<td width="13%" height="42"><div align="center" class="STYLE6"><a href="xiangce.html">南京相册a>div>td>
tr>
table>
td>
tr>
table>
<table width="1024" height="250" border="0" cellpadding="0" cellspacing="0" bgcolor="#fff">
<tr>
<td colspan="3" height="250"><div style="text-align:center">
<script type="text/javascript">
//imgLink3="";
var focus_width=1024
var focus_height=250
var text_height=0
var swf_height = focus_height+text_height
var pics="images/ad2.jpg|images/ad3.jpg|images/ad4.jpg"
var links="index.html|index.html"
var texts=""
var flashCode = ' focus_width +'" height="'+ swf_height +'">';
flashCode = flashCode + '';
flashCode = flashCode + '';
flashCode = flashCode + '+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"/>';
flashCode = flashCode + ' focus_width +'" height="'+ swf_height +'" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" wmode="transparent"/>';
flashCode = flashCode + '';
document.write(flashCode)
script>
div>td>
tr>
<tr>
<td width="305" height="122"><img src="images/nanjing.jpg" width="245" height="185" class="img1"/>td>
<td width="747" colspan="2" style="line-height:22px;"><div style="padding:10px;">
<p>南京,简称宁,是江苏省会、副省级市,长三角及华东地区第二大城市,中国科教第三城,中国国家区域中心城市(华东),国家重要的政治、军事、科教、文化、航运、经济和金融中心,国家综合交通枢纽、通信枢纽和科技创新中心,南京都市圈核心城市,长三角辐射带动中西部地区发展的重要门户城市。p>
<p>南京历史悠久,是首批国家历史文化名城和全国重点风景旅游城市,有着6000多年文明史、近2600年建城史和近500年的建都史,是中国四大古都之一,有“六朝古都”、“十朝都会”之称,是中华文明的重要发祥地。p>
div>td>
tr>
<tr>
<td colspan="2">
<table width="1024" border="1" style="overflow:hidden;">
<tr>
<td><img src="images/p1.jpg" class="img1"/>td>
<td><img src="images/p2.jpg" class="img1"/>td>
<td><img src="images/p3.jpg" class="img1"/>td>
<td><img src="images/p4.jpg" class="img1"/>td>
tr>
table>
td>
tr>
<tr>
<td height="50" colspan="3" bgcolor="#281705" style="color:#a27a4f;"><div align="center">div>td>
tr>
table>
center>
<embed autostart="true" loop="-1" controls="ControlPanel" width="0" height="0" src="music/music.mp3">
body>
html>
@charset "utf-8";
/* CSS Document */
*{padding:0; margin:0; border:0;}
body{ background:url(../images/bg.jpg) repeat-x #f3f3f3;}
body,td,th {
font-size: 12px;
color: #000000;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
.STYLE2 {color: #FFFFFF}
body {
background-color: #ece4d1;
}
.STYLE3 {
font-size: 14;
font-weight: bold;
}
.STYLE6 {color: #FFFFFF; font-size: 14; font-weight: bold; }
.STYLE6 a{color:#FFFFFF; font-size:14px; display:block; height:30px; line-height:30px; padding:0px 20xp;}
.STYLE6 a.aa{ background:#fff; color:#000;}
p{ color:#281705;}
.img1{ margin:10px 30px;}
.neirong{padding:10px 30px;}
.neirong p{ line-height:34px;}
.neirong h1{ height:40px; line-height:40px; text-align:center; background:#feba65; font-size:16px; font-weight:bold;}
.quhua tr td{height:30px; line-height:30px;}
.xinwen h1{ height:40px; line-height:40px; text-align:center; background:#feba65; font-size:16px; font-weight:bold;}
.xinwen p{ line-height:34px;}
.xinwen table tr td{height:34px; line-height:34px; background:#CCCCCC; text-indent:10px;}
.mshd{ width:800px; margin:0 auto;}
.mshd tr td{ text-align:center; line-height:30px; font-size:14px; padding-top:20px;}
.mshd tr td img{ display:block; border:1px solid #ccc; padding:2px; width:300px; height:200px; text-align:center; }
.neixiangce{ width:800px; margin:0 auto;}
.neixiangce tr td{ text-align:center; line-height:30px; font-size:14px; padding-top:20px;}
.neixiangce tr td img{ display:block; border:1px solid #ccc; padding:2px; width:200px; height:150px; text-align:center; }
.datu{ width:800px; margin:0 auto;}
.datu tr td{ text-align:left; line-height:30px; font-size:14px; padding-top:20px;}
.fanhui a{width:80px; height:22px; display:block; line-height:22px; background:#feba65; border:1px solid #000000; text-align:center;}
.huifu{width:80px; height:22px; display:block; line-height:22px; background:#f9dcb8; border:1px solid #feba65; text-align:center; margin-top:10px;}
一套合格的网页应该包含(具体可根据个人要求而定)
1.如果我的博客对你有帮助、如果你喜欢我的博客内容,请 “点赞” “✍️评论” “收藏”
一键三连哦!
2.❤️【关注我| 获取更多源码 | 优质文章】
带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!
3.