100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > DIV布局个人介绍网页模板代码 家乡海阳个人简介网页制作 简单个人静态HTML网页设计

DIV布局个人介绍网页模板代码 家乡海阳个人简介网页制作 简单个人静态HTML网页设计

时间:2023-01-02 03:11:08

相关推荐

DIV布局个人介绍网页模板代码 家乡海阳个人简介网页制作 简单个人静态HTML网页设计

家乡旅游景点网页作业制作 网页代码运用了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" rel="stylesheet" type="text/css" /></head><body><!----网站头部开始----><div class="top"><img src="images/logo.jpg"></div><div id="nav"><ul> <li><a href="index.html">网站首页</a></li><li><a href="about.html">家乡简介</a></li><li><a href="news.html">家乡新闻</a></li><li><a href="liuyan.html">在线留言</a></li><li><a href="jianjie.html">个人简介</a></li></ul></div><!-----网站头部结束--------------><!------网站主体部分开始-----------------------><div class="main"><div class="box"><img src="images/banner1.jpg"></div><div class="nr"><div class="tit-s">家乡简介</div><div class="box1"><div class="box1-left"><img src="images/gr.jpg" /></div><div class="box1-right"><P> 海阳市,隶属于山东省烟台市。位于山东半岛东南部,烟台市境南部,东邻乳山、牟平,西接莱阳,北连栖霞,南濒黄海,西南隔丁字湾与即墨相望。总面积1886.84平方千米。海阳市位于胶东半岛南端,因地处黄海之阳而得名。</P><P>,海阳市下辖4个街道、10个镇,另设有3个工业区、1个旅游区 ,户籍人口为64.2643万人,实现地区生产总值(GDP)341.7亿元,其中,第一产业增加值77.1亿元,第二产业增加值125.3亿元,第三产业增加值139.3亿元。11月,入选第二批节水型社会建设达标县(区)名单。</P><P>海阳市位于山东半岛南部,东邻乳山、牟平,西接莱阳,北连栖霞,南濒黄海,西南隔丁字湾与即墨相望。介于东经120°50′一121°29′,北纬36°16′一37°10′之间,总面积1886.84平方千米。市区距烟台市119千米,离济南市420千米,至北京市883千米。</P></div></div><div class="caiz"><ul><li><img src="images/dg1.jpg"></li><li><img src="images/dg2.jpg"></li><li><img src="images/dg3.jpg"></li><li><img src="images/dg4.jpg"></li></ul></div><div class="bx2"><div class="left"><h1><a href="news.html">家乡新闻<span>更多》</span></a></h1><ul><li><a href="news01.html"><p>烟台海阳这个山村里, 有棵近500年历史的柘树</p><span>-12-16</span></a></li><li><a href="news02.html"><p>冬季逛烟台海阳徐家店大集, 虽然天冷但集上挺热闹</p><span>-12-11</span></a></li><li><a href="news01.html"><p>烟台海阳这个山村里, 有棵近500年历史的柘树</p><span>-12-16</span></a></li><li><a href="news02.html"><p>冬季逛烟台海阳徐家店大集, 虽然天冷但集上挺热闹</p><span>-12-11</span></a></li><li><a href="news01.html"><p>烟台海阳这个山村里, 有棵近500年历史的柘树</p><span>-12-16</span></a></li><li><a href="news02.html"><p>冬季逛烟台海阳徐家店大集, 虽然天冷但集上挺热闹</p><span>-12-11</span></a></li></ul></div><div class="right"><img src="images/new.jpg"></div></div></div></div><!------网站主体结束---------------------------><!------网站底部分开始-----------------------><div class="foot"><p></p><p>版权所有:我的家乡烟台海阳</p><p></p></div><!------网站底部体结束---------------------------></body></html>

2.CSS样式代码 🏠

@charset "utf-8";/* CSS Document */body{margin:0 auto; font-size:14px; font-family: "微软雅黑"; line-height:22px; background:#fbf6d9 }div,p,input,ul,li,h1,h2,h3{height:auto; margin:0;; padding:0; vertical-align:middle ;}li{list-style:none;}a{text-decoration:none; color:#000;}/*---top开始-----*/.top{width: 1000px; height: 100px; background:#FFF; margin:0 auto;}.top img{margin-top: 10px; margin-left: 20px;float: left;}#nav{width:1000px; height:50px; background:#bc7018; margin:0 auto;}#nav ul{width:1000px; height:50px; line-height:50px; font-size:14px; margin:0 auto;}#nav ul li{width: 200px; height:50px; line-height:50px; color:#FFF; float:left; text-align:center;}#nav li a {color:#FFF;font-family: "微软雅黑";font-size:16px;margin-left: 2px;display: block;font-weight:bold;}.main{width: 1000px;margin: 0 auto;height: auto;overflow: hidden;}/*---top结束-----*/.box {width: 1000px;height: 335px;}.nr{width: 960px;height: auto;overflow: hidden;background:#FFF;padding: 20px;}.tit-s {font-size: 16px;height: 40px;line-height: 40px;font-weight: bold;width: 940px;padding:0px 10px;border-bottom:#bc7018 1px solid;}.tit-s span a{float:right; font-weight:normal; font-size:12px;color: #FFF;}.caiz{width:100%; height: auto; overflow:hidden;}.caiz ul{margin-top: 20px;padding: 0px 10px;}.caiz ul li{width: 225px;height: 220px;padding: 5px;float: left;} .caiz ul li img{width: 225px;height: 200px;}.box1{width:960px; height:260px;}.box1-left{width:200px; height:220px; padding:20px; float:left;}.box1-right{width:700px; margin-left:20px; height:220px; float:left;margin-top: 20px;}.box1-right-tit{font-size: 16px;color: #333;font-weight: bold; height:40px; line-height:40px;}.box1-right p{font-size:14px; line-height:22px; text-indent:2em;}.bx2{height:275px; margin-bottom:15px; width:960px;border:#e8e8e6 1px solid;}.bx2 .left{width:490px; height:243px; padding:15px; float:left; margin-right:16px;}.bx2 h1{height:40px; line-height:40px; font-size:20px;border-bottom:#bc7018 1px dashed; margin-bottom:10px;}.bx2 h1 a{color:#bc7018; }.bx2 h1 span{float:right; font-size:14px; font-weight:normal; color:#333;}.bx2 h2{line-height:35px; font-size:16px;}.bx2 h2 span{color:#F00;}.bx2 h3{font-size:12px; font-weight:normal; line-height:20px; color:#666;}.bx2 ul li{height: 32px;background: url(../images/ico.png) no-repeat 0px 12px;line-height: 32px;font-size: 14px;}.bx2 ul li a{color:#000;}.bx2 ul li p{width: 410px;float: left;}.bx2 ul li p span{width:76px; float:left;}.bx2 .right{width:388px; height:243px;padding:15px; float:right; }.bx2 .right h1{width:388px; height:20px; background:#41628f; font-size:12px; line-height:20px; text-align:center; color:#FFF; font-weight:normal;}/*---foot开始-----*/.foot{width: 1000px;height:150px;background:#bc7018;margin: 0 auto;padding-top: 20px;}.foot p{width:1000px; height:30px; line-height:30px;color:#FFF; margin:0 auto ; text-align:center; }/*---foot结束-----*/.titile{width:225px;height:65px;background:url(../images/bg01.jpg) no-repeat;margin:0 auto;margin-top: 20px;margin-bottom:20px;}.titile h2{line-height: 55px;font-size: 34px;font-weight: normal;text-align: center;}.jies {width: 960px;margin: 0 auto;background:#FFF;padding:20px;}.jies img {float: left;margin: 15px;}.jies p {text-indent: 2em;line-height: 25px;font-size: 14px;}.news{width:100%; }.news ul li{line-height:40px; height:40px; border-bottom:#CCC 1px dashed; color:#3d2915;}.news ul li a{float:left; display:block; line-height:40px; height:40px; background:url(../images/lvdian.jpg) left center no-repeat; color:#3d2915; padding-left:20px; }.news ul li a:hover{color:#000;}.news ul li span{float:right; color:#666; line-height:40px;}.conr {width: 960px;height:600px;overflow: hidden;border-top: #ffffff 2px solid;margin: 0 auto;padding:20px;background:#FFF;}.conr img {width: 300px;margin: 10px;margin-bottom: 5px;}.conr p {line-height: 30px;text-indent: 2em}.shet {height: auto;min-height: 230px;margin-bottom: 20px;padding-bottom: 10px;}.shet h1 {height: 45px;line-height: 45px;font-size: 18px;}.mr {float: left;margin-right: 20px !important;}.nr {height: auto;overflow: hidden;background: #FFF;padding-top: 20px;padding-bottom: 20px;}.title2 {height: 30px;line-height: 30px;font-size: 12px;text-align: center;color: #999;font-weight: normal;}.title2 span {color: #666 !important;font-weight: normal;}.neirong {width: 960px;height: auto;overflow: hidden;background: #FFF;}.neirong p {text-indent: 2em}.neirong img {display: block;margin: 0 auto;margin-top: 10px;margin-bottom: 10px;}.ntitle {font-size: 16px;height: 80px;line-height: 40px;margin: 0 auto;text-align: center;color: #333;margin-left: 20px;font-weight: bold;border-bottom: #CCC 1px dashed;margin-bottom: 20px;}

三、个人总结😊

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

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

四、更多干货🚀

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

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

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

DIV布局个人介绍网页模板代码 家乡海阳个人简介网页制作 简单个人静态HTML网页设计作品 DW个人网站制作成品 web网页制作与实现

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