学习使用HTML+CSS仿写一个私人网页

昨天看到一个图,就很想仿写下来,先给大家看看效果吧~

写在前面:这个网页是我仿写人家的,最开始是用来练手的!当时是在百度图片里找到的一张完整的图,然后截图一个一个扣出来的,代码是原创的!
ps:第一次写博客,问题有点多,不喜勿喷~
然后是自己用H Builder X写的,第一次发博客,哈哈!

然后自己用了华康娃娃体,改了点位置,包括用Photoshop做个小图标,效果如下:

这里引入了时间代码,来源这里:CSDN-在html页面实时显示系统时间

具体代码:

<div id="datetime"> <script> setInterval("document.getElementById('datetime').innerHTML=new Date().toLocaleString();", 1000); </script> </div>

然后是加了个音乐播放模块,和一个锚点,可以跳到下一页,效果如图:

然后是后边:

然后相关代码我直接写在一起了:

<!DOCTYPE html>
<html><head><meta charset="utf-8"><title>欢迎来到我的个人小站</title><style type="text/css">.page1{width: 1200px auto;height: 970px;background: url(background_boat.jpg) no-repeat;background-size:cover; margin-top: -35px;margin-left: -10px;margin-right: -5px;}.daohang{ /*background: url(find.png) no-repeat;*/width: 600px;height: 150px;display:table-cell;vertical-align: middle;position:absolute;top:400px;left:615px;z-index:1000;}.wel{color: white;font-size: 30px;}.fight{color: white;font-size: 20px;font-family: "microsoft yahei";margin-top:-10px ;}.center{text-align: center;font-family: "microsoft yahei";padding: 300px;}.jump{position:absolute;top:43px;left:165px;z-index:1000;text-decoration: none;font-family: "microsoft yahei";font-size: 20px;color: dimgray;}.jump2{position:absolute;top:33px;left:265px;z-index:1000;text-decoration: none;font-family: "microsoft yahei";font-size: 20px;color: darkslategray}.jump3{position:absolute;top:43px;left:370px;z-index:1000;text-decoration: none;font-family: "microsoft yahei";font-size: 20px;color: dimgray;}a.jump:hover{color: blueviolet;text-decoration: none;background: lightblue;}a.jump2:hover{color: blueviolet;text-decoration: none;background: yellowgreen;}a.jump3:hover{color: blueviolet;text-decoration: none;background: lightblue;}.page2{width: 1200px auto;height: 2400px;/*background: url(background_boat.jpg) no-repeat;*/background-size:cover;}.pic{width: 1300px;height: 200px;margin-left: 300px;margin-top: 50px;}@font-face {font-family: 'W5Font';src: url('fonts/华康娃娃体W5.TTF'),url('fonts/华康娃娃体W5.TTF'); /* IE9 */}   .p2text{width: 270px;height: 60px;text-align: center;margin-left: 310px;margin-top: -80px;font-family: W5Font;font-size: 23px;font-weight: 600;}.p2text2{width: 270px;height: 60px;text-align: center;margin-left: 630px;margin-top: -81px;font-family: W5Font;font-size: 23px;font-weight: 600;}.p2text3{width: 270px;height: 60px;text-align: center;margin-left: 920px;margin-top: -82px;font-family: W5Font;font-size: 23px;font-weight: 600;}.p2text4{width: 270px;height: 60px;text-align: center;margin-left: 1230px;margin-top: -82px;font-family: W5Font;font-size: 23px;font-weight: 600;}.pic2{width: 270px;height: 60px;text-align: center;margin-left: 300px;margin-top: 80px;font-family: W5Font;font-size: 23px;font-weight: 600;}.pa2text1{width: 270px;height: 60px;margin-left: 1300px;margin-top: 100px;font-family: W5Font;font-size: 23px;font-weight: 600;color: slategray;}.pic3{width: 270px;height: 60px;text-align: center;margin-left: 800px;margin-top: 300px;font-family: W5Font;font-size: 23px;font-weight: 600;}.pa2text2{width: 270px;height: 60px;margin-left: 350px;margin-top: 100px;font-family: W5Font;font-size: 23px;font-weight: 600;color: dimgray;}.pic4{width: 270px;height: 60px;text-align: center;margin-left: 300px;margin-top: 300px;font-family: W5Font;font-size: 23px;font-weight: 600;}.pa2text3{width: 270px;height: 60px;margin-left: 1300px;margin-top: 80px;font-family: W5Font;font-size: 23px;font-weight: 600;color: slategray;}.pic5{width: 270px;height: 60px;text-align: center;margin-left: 850px;margin-top: 300px;font-family: W5Font;font-size: 23px;font-weight: 600;}.pa2text4{width: 270px;height: 60px;margin-left: 350px;margin-top: 100px;font-family: W5Font;font-size: 23px;font-weight: 600;color: dimgray;}.next{margin-left: -20px;margin-top: 450px;}.ok{width: 270px;height: 60px;margin-left: 830px;margin-top: 300px;font-family: W5Font;font-size: 30px;font-weight: 600;color: dimgray;}#datetime{color: white;margin-top: -550px;margin-left: -600px;font-family: W5Font;font-size: 30px;border: #FFFFFF 2px dashed;width: 300px;height: 60px;text-align: center center;}</style></head><body><div class="page1"><div class="center"><p class="wel">欢迎来到我的个人网站</p><p class="fight">今天xxx也要加油呀!</p><div class="daohang"><img src="find.png" /><a href="#" class="jump" target="_blank">查成绩</a><a href="login.html" class="jump2" target="_blank">登录账户</a><a href="http://jandan.net " class="jump3" target="_blank">看看煎蛋</a><audio controls="controls" autoplay="autoplay" loop="loop"><source src="回音哥 - 陪我看日出.mp3" type="audio/mp3" /></audio><div id="datetime"><script>setInterval("document.getElementById('datetime').innerHTML=new Date().toLocaleString();", 1000);</script></div></div><a href="#one"><img src="next.png" class="next"/></a></div></div><div class="page2" id="one"><div class="pic"><img src="House/1A.png" class="1A"/><img src="House/2A.png" class="2A"/><img src="House/3A.png" class="3A"/><img src="House/4A.png" class="4A"/></div><div class="p2text"><p class="1B">教学楼是我们每天要去的取经之地</p></div><div class="p2text2"><p class="2B">每天到食堂里面不知道吃什么</p></div><div class="p2text3"><p class="3B">午饭过后可以躺着休息晒晒太阳的小山坡</p></div><div class="p2text4"><p class="4B">忙碌的一整天结束啦爬上床跟世界说晚安</p></div><div class="pic2"><img src="House/pic1.jpg" class="1A"/></div><div class="pa2text1"><p class="1C">淡淡的天空还是一片浅蓝,转眼间东方出现了一道红霞,红霞慢慢扩大,不一会就染红了半边天。颜色红的可爱,又过了一会,在那个地方出现了太阳的小半边脸。</p></div><div class="pic3"><img src="House/pic2.jpg" class="1A"/></div><div class="pa2text2"><p class="2C">当清晨的阳光洒进我们温馨的寝室,忙碌的一天开始了,闹钟开始响起,每个人都睡眼惺忪,从床上爬起来,忙忙碌碌的穿梭在食堂与教室之间。</p></div><div class="pic4"><img src="House/pic3.jpg" class="1A"/></div><div class="pa2text3"><p class="3C">温暖的阳光照耀着大地,远处的小山都金灿灿的美轮美奂,它穿梭于微隙的气息。舒坦,漫长。紫檀的气味,弥漫在春日,把天地间的一切空虚盈满,阳光下,是一道纤绝的陌尘,呢喃着天真,充盈着那抹曾经深不可测的孤清而飘渺的身影。</p></div><div class="pic5"><img src="House/pic4.jpg" class="1A"/></div><div class="pa2text4"><p class="4C">晚自习结束后,抬头仰望天空,几颗大而亮的星星挂在夜空,仿佛天上人们提着灯笼在巡视那浩瀚的太空。美丽极了,裹紧衣裳,在这优美的夜色中慢慢走回寝室。</p></div><div class="ok"><span>故事未完待续...</span></div></div></body>
</html>

大概就是这样的
接下来是注册的链接网页代码:

<!DOCTYPE html>
<html><head><meta charset="utf-8"><title>登陆页面</title><style type="text/css">input{border: darkgray 1px dashed;}</style></head><body><form>账户:<input type="text" value="请输入用户名"/><br /><br>密码:<input type="password" /><br><br><input type="reset" value="点击重置"/><input type="submit" value="点击登录" /><br><br></form></body>
</html>

写给自己玩玩吧~最近才学,练练手。
我看看上传个文件怎么搞…以下是需要的图片


有帮到你的话,那就很棒了!

下载地址,免费!点击下载
点个赞吧!谢谢!

学习使用HTML+CSS完成一个私人网页相关推荐

  1. 用html,js和css设计一个静态网页

    以下链接可以访问该静态网页 Romantic Store 设计理念: 一个静态的模拟花店网页,可以展示鲜花,模拟购买鲜花并把鲜花装进环保购物袋的过程,同时也宣传减少一次性塑料袋使用的环保理念. 2. ...

  2. 如何把 html、js、css 等一个 html 网页打包成单一的 exe 可执行程序文件?

    要将 HTML.JS.CSS 等文件打包成一个单一的可执行程序文件,可以使用 Electron 等工具. Electron 是一个使用 Node.js 和 Chromium 构建桌面应用程序的框架,可 ...

  3. html+css完成一个静态网页

    目录 布局 内容 顶部导航栏 左边 右边 轮播图 体会 布局 完成一个网页首先要有大致的布局 内容 顶部导航栏 主要是通过一个一级列表和一个二级列表来实现 鼠标移入一级列表时,二级列表开始显示. &l ...

  4. 基于html加css做一个静态网页作业

    模仿QQ会员官网 先上图: 新手写的不太好,二级子菜单啥的都有,拿去交作业应该可以. <!DOCTYPE html> <html lang="en"> &l ...

  5. 通过HTML和CSS设计一个静态网页(练习实例,附完整代码)

    本文笔记基于「千古壹号」的GitHub项目:https://github.com/qianguyihao/web 网页原址:博雅互动 <!DOCTYPE html> <html la ...

  6. 前端学习笔记 - 用CSS实现一个背景色为红色,半径为200px的圆,并设置不停的上下移动动画

    返回目录 一.DOM <body><div class="box"></div> </body> 二.CSS <style&g ...

  7. bootstrap思想总结_bootstrap学习心得总结-css样式设计分享

    由于项目需要,所以打算好好学习下bootstrap框架,之前了解一点,框架总体不难,但涉及到的东西还是很多,想要熟练掌握它,还是要多练练. 一:bootstrap是什么? bs是什么? 即前端页面搭建 ...

  8. 【前端学习一】【网页设计】利用HTML和CSS制作了一个小网页.

    前言 最近在学习前端,光看不练是空谈,利用课下时间以及课上时间做了一个小网页,其中利用到了HTML和CSS.网页非常简单,功能也非常少,但还是出现了许多错误,有一些妥协性,而且目前从制作中还遗留了许多 ...

  9. web前端期末大作业 html+css+javascript 全球私人定制旅游网页设计实例(6个页面)

    web前端期末大作业 html+css+javascript 全球私人定制旅游网页设计实例(6个页面) 临近期末, 你还在为HTML网页设计结课作业,老师的作业要求感到头大?HTML网页作业无从下手? ...

最新文章

  1. 计算机系统备份的原则和策略,计算机系统数据备份机制与策略
  2. 博途中用的是c吗_一只“66 鸭”离奇出走,只为助蛋宝宝C位出道
  3. LightGBM中GBDT的实现
  4. 我要做 Android 之 ContentProvider
  5. 悲苦手机命,“熬”在新零售
  6. 顺序查找、折半查找、索引查找
  7. Atitit 获取SqlSessionFactory的三种方式 目录 第一节 DataSource 方式 1 第二节 读取sprbt Url方式 ByteArrayInputStream 1 第三节
  8. 股票指标php源码,自编技术指标公式源码(一)_股票学习网
  9. Jiagu 自然语言处理工具
  10. SkeyeVSS综合安防监控Onvif、RTSP、GB28181视频云解决方案之服务器系统硬件资源管理
  11. c语言编写生日祝福语大全,生日卡片祝福语(精选50句)
  12. 推荐一款桌面弹窗广告拦截软件【桌面弹窗广告屏蔽】
  13. w7提示无法关闭计算机,番茄花园windows7关闭电脑关机时提示强制关闭程序怎么办...
  14. java获取一年的周数、单周开始时间与结束时间、一年所有周开始时间与结束时间、月开始时间与结束时间
  15. 帆软 大屏BI模板(含报表滚动,图表联动等)下载
  16. 一文读懂Apache Kylin(麒麟)
  17. BZOJ 2039: [2009国家集训队]employ人员雇佣 最小割 二元组建图模型
  18. SpringBoot使用JavaMailSender发送邮件:com.sun.mail.smtp.SMTPSendFailedException: 451 MI:SFQ 163 smtp7
  19. OS及Mac开源项目和学习资料【超级全面】
  20. 计算机求职简历考试题题大学,大学计算机基础上机实验指导与习题,word的设计性实-个人简历.docx...

热门文章

  1. 局域网git服务器搭建(基于win7 + bonobo git server)
  2. mac连不上wifi 未能加入wifi网络 请尝试靠近无线路由器,或者,运行“无限诊断”来排除故障
  3. 腾讯视频IP读物衍生电视剧运营
  4. 使用appium桌面版在win平台连接逍遥模拟器(以梦幻西游手游为例)
  5. 【可视化】rviz下的kitti数据集可视化(1)
  6. audio codec简介
  7. 用springboot jpa 报:No property yer found for type OrderMaster错
  8. c语言大作业车票管理系统,c语言车票管理系统.docx
  9. mysql varchar 单引号_char、varchar数据类型值在使用时可以要用单引号或双引号括起来。...
  10. 如何在职场中更快地成长