1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 使用dreamweaver制作采用DIV+CSS进行布局【我的家乡主题网站制作】

使用dreamweaver制作采用DIV+CSS进行布局【我的家乡主题网站制作】

时间:2018-09-30 02:21:29

相关推荐

使用dreamweaver制作采用DIV+CSS进行布局【我的家乡主题网站制作】

🌩️ 精彩专栏推荐👇🏻👇🏻👇🏻

💂 作者主页: 【进入主页—🚀获取更多源码】

🎓 web前端期末大作业: 【📚HTML5网页期末作业 (1000套) 】

🧡 程序员有趣的告白方式:【💌HTML七夕情人节表白网页制作 (110套) 】

📂文章目录

二、📚网站介绍三、🔗网站效果▶️1.视频演示🧩 2.图片演示四、💒 网站代码🧱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.视频演示

D37SJ-家乡海阳个人简介三级页面留言表单带素材(7页)

🧩 2.图片演示

四、💒 网站代码

🧱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>

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

五、🎁更多源码

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

2.💗【👇🏻👇🏻👇🏻🉑关注我| 获取更多源码】带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、等!

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

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