HTML+CSS个人博客静态网页设计 (大一学生web实训作业)
🌩️ 精彩专栏推荐👇🏻👇🏻👇🏻
💂 作者主页: 【进入主页—🚀获取更多源码】
🎓 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.视频演示
I81JP-我的博客(5页)
🧩 2.图片演示
四、💒 网站代码
🧱HTML结构代码
<!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 href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-----头部开始------->
<div class="top">
<a href="index.html"><img src="images/banner.gif" /></a>
</div>
<!---nav开始---->
<div class="daohang">
<div id="nav">
<ul>
<li class="hot"><a href="index.html">首页</a></li>
<li><a href="rizhi.html">日志</a></li>
<li><a href="xiangce.html">相册</a></li>
<li><a href="liuyan.html">留言板</a></li>
<li><a href="guanyu.html">关于我</a></li>
</ul>
<div class="sousuo">站内搜索
<div id="box">
<input type="text" name="search" >
<div id="search">搜索</div>
</div></div>
</div>
</div>
<!---nav结束---->
<!-----头部结束------->
<!-----main开始------->
<div class="main">
<div class="left" >
<div class="tit">>>关于我</div>
<img src="images/109395CF4-7.jpg" width="193px" height="242px" />
<div class="minz"><img src="images/girl.gif" />张梅 </div>
<p>重庆市 南岸区 </p>
<div class="duanlu">天微明,冬天的光透过窗,印在左手的无名指上。 回忆的颜色是透明的冷,于是,用窗口透入的薄薄的光暖一暖心。</div>
</div>
<div class="right">
<div class="box1"><div class="tit"> >>日志</div>
<ul>
<li><p>IMAX加长版《变形金刚》(Transformers)亲历简报</p><span>2007-09-25</span></li>
<li><p>《变形金刚》发烧友的看图说话(多图)</p><span>2007-09-22 10:13</span></li>
<li><p>《反恐王国》(The Kingdom):生猛的空心弹 </p><span>2007-09-22 08:03</span></li>
<li><p>《东方承诺》(Eastern Primises):不动如山,暗流汹涌</p><span>2007-09-20 11:07</span></li>
<li><p>《妖精的旋律》(Elfen Lied):日式YY的经典案例</p><span>2007-09-20 10:44</span></li>
</ul>
</div>
<div class="box2">
<div class="tit"> >>相册</div>
<img style="margin-left:8px;" src="images/1.jpg" width="175px" height="188px" />
<img src="images/2.jpg" width="175px" height="188px" />
<img src="images/3.jpg" width="175px" height="188px" />
</div>
</div>
</div>
<!-----main结束------->
<!-----bottom开始------->
<div class="bottom">
<div class="bottom-box">
<p>BLOG公司版权所有 1997-2010 </p>
</div>
</div>
<!-----bottom结束------->
</body>
</html>
🏠CSS样式代码
@charset "utf-8";
/* CSS Document */
body{ margin:0 auto; font-size:12px; font-family: "宋体",arial; line-height:22px; }
div,p,input,ul,li,p,h1,h2,h3,h4,h5,h6,dl,dt,dd{ height:auto; margin:0;; padding:0; vertical-align:middle ;}
li{ list-style:none;}
a{ text-decoration:none;}
.ul{ list-style:none;}
.divclear{ clear:both;}
img{ border:0; margin:0; padding:0;}
a{color:#333;}
a:link{ color:#333;}
a:hover {color:#629705;text-decoration:none;overflow:hidden;}
/*---网页开始-----*/
/*---top开始-----*/
.top{ height:255px; width:950px; margin:0 auto; }
/*---top结束-----*/
/*---导航----*/
.daohang{ width:950px;
height: 47px;
background: url(../images/navbg.gif) repeat-x;
margin: 0 auto;}
#nav{ width:950px; height:40px; line-height:40px; font-family:"微软雅黑"; font-weight:bolder; font-size:14px; margin:0 auto; }
#nav ul{ margin:0 auto; margin-left:20px;width: auto;
float: left; }
#nav li{float: left;
text-align: center;
color: #f2ecec;
}
#nav a{width:60px;height:40px;padding:0px 10px; display:block; font-family:"微软雅黑"; font-size:14px; font-weight:bold; float:left;}
#nav a:link { color:#016941; }
#nav a:visited{ color:#016941; text-decoration:none; overflow:hidden; }
#nav a:hover { color: #016941; text-decoration:none; overflow:hidden; background: url(../images/navbghover.gif) repeat-x; }
#nav a:active { color: #016941; text-decoration:none; overflow:hidden; background:url(../images/navbghover.gif) repeat-x; }
.hot{ background:url(../images/navbghover.gif) repeat-x;}
.sousuo{ width:270px; height:40px; float:right; margin-right:40px;color: #016941;}
#box{
font-size: 14px;
float: right;
margin-left: 5px;
margin-top: 10px;
}
input{
width: 155px;
height: 20px;
float: left;
border: #434344 1px solid;
}
#search{
height: 20px;
float: right;
cursor: pointer;
background: #016941;
width: 37px;
margin-left: 2px;
line-height: 20px;
color: #fff;
font-weight: normal;
text-align: center;
font-size: 12px;
}
.main{ width:950px; height:auto; overflow:hidden; border:#fceaa9 1px solid; margin:0 auto; border-bottom:none;}
.main2 p{ padding:0px 20px;}
.main .left{ width:320px; padding:0px 25px; height:465px; float:left; text-align:center;}
.main .left .tit{ width:312px; height:40px; line-height:50px; border-bottom:#933 1px solid; font-weight: bolder; font-size:14px; text-align:left; margin-bottom:10px;}
.minz{ width: 50px;
height: 40px;
line-height: 40px;
margin: 0 auto; margin-top:10px;}
.minz img{ float: left;
margin-top: 12px;}
.main .right{ width:580px; height:465px; float:left;}
.box1{ width:558px; height:183px; border:#cccc99 1px solid; margin-top:10px;}
.box1 .tit{ width:100%; height:33px; background:#cccc99;font-weight: bolder; font-size:14px; line-height:33px;}
.box1 ul{ margin:0px 12px; width:530px;}
.box1 ul li{ width:510px; border-bottom:#000 1px dashed; padding-left:20px; height:27px; line-height:27px; background:url(../images/ico4.gif) no-repeat 0px 2px;}
.box1 ul li p{ width: 80%;float: left;}
.box1 ul li span{ width:20%;}
.duanlu{ color:#990000; text-align:left;letter-spacing:5px; margin-top:15px;}
.box2{ width:558px; height:250px; border:#cccc99 1px solid; margin-top:8px;}
.box2 .tit{ width:100%; height:33px; background:#cccc99;font-weight: bolder; font-size:14px; line-height:33px; margin-bottom:15px;}
.box2 img{ float:left; margin-right:8px;}
.biaoti{ font-size:14px; width:100%; height:50px; line-height:50px; font-weight:bolder; text-align:center;}
.xiangce{ width: 940px;
height: 500px;}
.xiangce ul{ }
.xiangce ul li{ width: 290px;
float: left;
padding: 10px;
text-align: center; }
.xiangce ul li img{ width:210px; height:240px;margin:10px 0px;}
/*---bottom结束-----*/
.bottom{ width: 950px;
margin: 0 auto; height:54px; background:url(../images/footer.gif) no-repeat;}
.bottom p{ height: 54px;
text-align: center;
float: left;
width: 100%;
line-height: 80px;}
.mianb{ width:100%; height:30px; background:#ffffdb; text-align:right; line-height:30px;}
.danye{color: #666;
font-size: 14px;
line-height: 25px; width:700px; margin:0 auto;}
.main3 { width:60%; margin:0 auto; min-height:400px;}
.main3 p{ text-align:left; margin:10px 0px;}
/*---bottom结束-----*/
五、🎁更多源码
1.如果我的博客对你有帮助 请 “👍点赞” “✍️评论” “💙收藏”
一键三连哦!
2.💗【👇🏻👇🏻👇🏻🉑关注我| 获取更多源码】
带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、等!
📣以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻
2401_85530504: 求源代码
2301_78575081: 这个复制的代码好像有点点乱,有源码不主播
清落唉: 能把压缩包发一下吗
抹香鲸之海: 帅,怎么获取源码?
s1586850: 要放的图片是哪几个