📂文章目录
- 二、✍️网站描述
- 三、📚网站介绍
- 四、💠网站演示
- 五、⚙️ 网站代码
- 🧱HTML结构代码
- 💒CSS样式代码
- 六、🥇 如何让学习不再盲目
- 七、🎁更多干货
❤ 【作者主页——🔥获取更多优质源码】
❤ 【学习资料/简历模板/面试资料/ 网站设计与制作】
❤ 【web前端期末大作业——🔥🔥毕设项目精品实战案例】
# 一、👨🎓网站题目 🐕 宠物网页设计 、🐼保护动物网页、🐋鲸鱼海豚主题、🐘保护大象、等网站的设计与制作。
二、✍️网站描述
🏷️HTML宠物网页设计,采用DIV+CSS布局,共有多个页面,排版整洁,内容丰富,主题鲜明,首页使用CSS排版比较丰富,色彩鲜明有活力,导航与正文字体分别设置不同字号大小。导航区域设置了背景图。子页面有纯文字页面和图文并茂页面。
🏅 一套优质的💯网页设计应该包含 (具体可根据个人要求而定)
- 页面分为页头、菜单导航栏(最好可下拉)、中间内容板块、页脚四大部分。
- 所有页面相互超链接,可到三级页面,有5-10个页面组成。
- 页面样式风格统一布局显示正常,不错乱,使用Div+Css技术。
- 菜单美观、醒目,二级菜单可正常弹出与跳转。
- 要有JS特效,如定时切换和手动切换图片轮播。
- 页面中有多媒体元素,如gif、视频、音乐,表单技术的使用。
- 页面清爽、美观、大方,不雷同。 。
- 不仅要能够把用户要求的内容呈现出来,还要满足布局良好、界面美观、配色优雅、表现形式多样等要求。
三、📚网站介绍
📔网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。
📓网站程序方面:计划采用最新的网页编程语言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代码)。
四、💠网站演示
五、⚙️ 网站代码
🧱HTML结构代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link type="text/css" rel="stylesheet" href="css/style.css" /> <script src="js/js.js" type="text/javascript"></script> <title>狗狗百科</title> </head> <body> <div class="wrapin"> <a href="#" class="logo"><img src="images/logo.png"/></a> </div> <div class="wrapin"> <header class="clearfix"> <h2>狗狗百科</h2> <ul class="clearfix nav"> <li><a href="index.html">网站首页</a></li> <li><a href="fenlei.html">狗狗分类</a></li> <li><a href="zixun.html">狗狗资讯</a></li> <li><a href="yongpin.html">狗狗用品</a></li> <li><a href="lianxi.html">联系我们</a></li> </ul> </header> <div class="banner_box "> <div class="box-1"> <ul> <li> <img src="images/banner1.jpg"></img> </li> <li> <img src="images/banner2.jpg"></img> </li> <li> <img src="images/banner3.jpg"></img> </li> <li> <img src="images/banner4.jpg"></img> </li> </ul> </div> <div class="box-2"> <ul> </ul> </div> <div class="box-3"> <span class="prev"> < </span> <span class="next"> > </span> </div> </div> <div class="con"> <div class="top clearfix"> <div class="jians"> <div class="title"> <h2>狗</h2> </div> <div class="text"> <img src="images/img_01.jpg" width="120" class="lt"/> 狗(拉丁文Canis lupus familiaris)属于脊索动物门、脊椎动物亚门、哺乳纲、真兽亚纲、食肉目、裂脚亚目、犬科动物。中文亦称“犬”,狗分布于世界各地。狗与马、牛、羊、猪、鸡并称“六畜”。有科学家认为狗是由早期人类从灰狼驯化而来,驯养时间在4万年前~1.5万年前。被称为“人类最忠实的朋友”,是饲养率最高的宠物,其寿命大约在12~18年 。在中国文化中,狗属于十二生肖之一,在十二生肖中的第11位。 </div> </div> <div class="news_in"> <div class="title"> <h2>狗狗资讯</h2> </div> <ul> <li><a href="zixun_2.html">比利时牧羊犬的细节</a></li> <li><a href="zixun_3.html">大丹犬智商 大丹犬性格大揭秘</a></li> <li><a href="zixun_4.html">养狗,我劝你不要养“茶杯犬”,不然你会和我一样</a></li> <li><a href="zixun_5.html">狗狗喝咖啡也会中毒,一旦喝下这个量,狗狗可能会</a></li> <li><a href="zixun_6.html">开朗的狗狗突然不开心,它情绪低落有这3个原因,</a></li> </ul> </div> </div> <div class="tupian"> <div class="title"> <h2>狗狗美图</h2> </div> <ul class="clearfix"> <li> <img src="images/img_02.jpg"/> </li> <li> <img src="images/img_03.jpg"/> </li> <li> <img src="images/img_04.jpg"/> </li> </ul> </div> <footer>狗狗百科</footer> </div> </body> </html>
复制
💒CSS样式代码
* { margin: 0; padding: 0; } body { margin: 0 auto; font-size: 14px; background: #fff; color: #333; position: relative; } img { border: none; } a { cursor: pointer; color: #333; text-decoration: none; outline: none; } ul { list-style-type: none; } em { font-style: normal; } .lt { float: left; } .rt { float: right; } div.clear { font: 0px Arial; line-height: 0; height: 0; overflow: hidden; clear: both; } .clearfix::after { content: ""; display: block; clear: both; } .wrapin { width: 1000px; margin-left: auto; margin-right: auto; } .logo { display: block; width: 160px; margin: 10px auto; } .logo img { width: 100%; } header { height: 50px; padding: 0 15px; background: #71a5b0; } header h2 { float: left; font-size: 24px; color: #fff; line-height: 50px; } .nav { float: right; line-height: 50px; text-align: center; } .nav li { display: inline-block; width: 120px; font-size: 16px; text-align: center; } .nav li a { color: #fff; } .banner { width: 100%; } .banner img { width: 100%; } .banner img { width: 100%; display: block; object-fit: cover; } .banner_box { width: 100%; height: 520px; overflow: hidden; position: relative; } .box-1 ul { } .box-1 ul li { width: 100; height: 520px; position: relative; overflow: hidden; } .box-1 ul li img { display: block; width: 100%; object-fit: cover; height: 100%; } .box-1 ul li h2 { position: absolute; left: 0; bottom: 0; height: 40px; width: 100%; background: rgba(125,125,120,.4); text-indent: 2em; padding-right: 500px; font-size: 15px; line-height: 40px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-weight: normal; color: ghostwhite } .box-2 { position: absolute; right: 10px; bottom: 14px; } .box-2 ul li { float: left; width: 12px; height: 12px; overflow: hidden; margin: 0 5px; border-radius: 50%; background: rgba(0,0,0,0.5); text-indent: 100px; cursor: pointer; } .box-2 ul .on { background: rgba(255,255,255,0.6); } .box-3 span { position: absolute; color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.1); width: 50px; height: 80px; top: 50%; font-family: "宋体"; line-height: 80px; font-size: 60px; margin-top: -40px; border-radius: 5px; text-align: center; cursor: pointer; } .box-3 .prev { left: 10px; } .box-3 .next { right: 10px; } .box-3 span::selection { background: transparent; } .box-3 span:hover { background: rgba(255,255,255,.5); color: rgba(255,255,255,1) } .con { margin-top: 20px; } .title { padding: 15px 0; color: #71a5b0; border-bottom: 2px solid #71a5b0; } .title h2 { font-size: 20px; } .jians { width: 49%; float: left; } .jians .text { padding: 15px 0; font-size: 14px; color: #333; line-height: 26px; } .news_in { width: 49%; float: right; } .news_in li { line-height: 40px; border-bottom: 1px dashed #ccc; } .news_in li a { color: #333; font-size: 14px; } .news_in li a:hover { color: #f29721; } footer { background: #71a5b0; text-align: center; line-height: 50px; font-size: 16px; color: #fff; } .tupian ul { margin: 0 -15px; } .tupian ul li { width: 33.333%; float: left; padding: 15px; box-sizing: border-box; } .tupian ul li img { width: 100%; height: 195px; object-fit: cover; border: 1px solid #ccc; } .tupian ul li p { line-height: 30px; text-align: center; font-size: 16px; color: #333; } .fenl { margin-top: 10px; } .fenl li { display: inline-block; margin: 5px; width: 120px; line-height: 36px; background: #71a5b0; color: #fff; font-size: 14px; text-align: center; } .fenl li a { display: block; color: #fff; } form { width: 100%; display: block; } form p { margin: 10px 0; font-size: 16px; color: #333; } form .phone { width: 100%; height: 36px; padding: 0 10px; box-sizing: border-box; border: 1px solid #ccc; } form textarea { width: 100%; height: 100px; } form .but { background: #71a5b0; border: none; color: #333; margin: 20px auto; display: block; width: 200px; height: 40px; color: #fff; } .details_a { margin: 30px 0 50px; } .details_a .pic { width: 26%; float: left; } .details_a .pic img { width: 100%; } .details_a .text { float: right; width: 72%; } .details_a .text h2 { font-size: 20px; } .details_a .text p { font-size: 14px; line-height: 26px; color: #333; } .details h1 { font-size: 20px; color: #333; text-align: center; padding: 25px 0; border-bottom: 1px solid #ccc; } .details .text { line-height: 26px; color: #333; font-size: 16px; padding:20px 0; }
复制
六、🥇 如何让学习不再盲目
21年程序员总结给编程菜鸟的16条忠告
- 入门期间不要盲目看太多书,找一本网上或身边有经验程序员推荐的教材,先系统的学习。
- 多看帮助文档,帮助文档就像一个游戏的玩法说明通关秘籍,该看就看别太自信。
- 菜鸟容易被对象、属性、方法等词汇迷惑?那是你连最基础知识都还没掌握。
- 不要忽视没一个看起来不起眼的问题,经常总结做到举一反三。
- 没积累足够知识和经验前,你是开发不出一个完整项目的。
- 把最新技术挂在嘴边,还不如把过时技术牢记心中。
- 活到老学到老,只有一招半式是闯不了江湖的。
- 看得懂的书,仔细看;看不懂的书,硬着头皮也要看完。
- 书读百遍其义自见,别指望读一遍就能掌握。
- 请把教程里的例子亲手实践下,即使案例中有完整源码。
- 把在教程中看到的有意义的例子扩充;并将其切实的运用到自己的工作中。
- 不要漏掉教程中任何一个习题——请全部做完并做好笔记。
- 水平是在不断的实践中完善和发展的,你与大牛差的只是经验的积累。
- 每学到一个难点的时候,尝试对朋友或网上分享你的心得,让别人都能看得懂说明你真的掌握。
- 做好保存源文件的习惯,这些都是你的知识积累。
- 遇到问题不要张口就问,要学会自己找答案,比如google、百度和w3cschool上都有很多编程相关资料,你只要输入关键字就能找到你的答案。
七、🎁更多干货
1.如果我的博客对你有帮助、如果你喜欢我的博客内容,请 “👍点赞” “✍️评论” “💙收藏”
一键三连哦!
2.💗【👇🏻👇🏻👇🏻关注我| 💬获取更多源码 | 优质文章】
带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!
3.
以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻💬