900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > 制作一个简单HTML校园网页(HTML+CSS)学校网站制作 校园网站设计与实现

制作一个简单HTML校园网页(HTML+CSS)学校网站制作 校园网站设计与实现

时间:2024-02-28 15:30:33

相关推荐

制作一个简单HTML校园网页(HTML+CSS)学校网站制作 校园网站设计与实现

📂文章目录

一、👨‍🎓网站题目二、✍️网站描述三、📚网站介绍四、🌐网站演示五、🔧 网站代码🧱HTML结构代码💒CSS样式代码六、🥇 如何让学习不再盲目七、🎁更多干货

一、👨‍🎓网站题目

🧑个人网页设计、🙋‍♂️个人简历制作、👨‍💼简单静态HTML个人网页作品、👨‍🏭个人介绍网站模板 、等网站的设计与制作。

二、✍️网站描述

⭐个人网页设计网站模板采用DIV CSS布局制作,网页作品有多个页面,如 :个人介绍(文字页面)、我的作品(图片列表)、个人技能(图文页面)、在线留言(表单页面)CSS样式方面网页整体采用左右布局结构,制作了网页背景图片,导航区域每个导航背景色不同,导航背景色与页面背景呼应。

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

页面分为页头、菜单导航栏(最好可下拉)、中间内容板块、页脚四大部分。所有页面相互超链接,可到三级页面,有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 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 rel="stylesheet" type="text/css" href="css/index.css"></head><script><!--function setTab(name,cursel,n){for(i=1;i<=n;i++){var menu=document.getElementById(name+i);var con=document.getElementById("con_"+name+"_"+i);menu.className=i==cursel?"hover":"";con.style.display=i==cursel?"block":"none";}}//--></script><body><div class="top_bg"><div class="top"><p style="float:left;"><img src="images/logo.jpg" /></p><div class="youce"><p><a href="index-2.html">联系我们</a> | 学校邮箱 | <a href="index-2.html">网站地图</a></p><div class="sousuo"><input name="" type="text" class="sousuo_in" /><a href="/" target="_blank"><img src="images/sousuo_btn.jpg" style="float:left;" /></a></div></div></div></div><div class="nav_bg"><div class="nav"><p><a href="index-2.html">首 页</a><a href="gaikuang.html">学校概况</a><a href="xinwen.html">新闻中心</a><a href="xiaoyou.html">校友时空</a><a href="xuesheng.html">学生会</a><a href="jiazhang.html">家长学校</a><a href="xinwen.html">通知公告</a><a href="xinwen.html">校内新闻</a><a href="xinwen.html">教育新闻</a><a href="yinyue.html">音乐欣赏</a></p></div></div><center><div id="page"><div class="lunhuan"><script type="text/javascript" language="JavaScript">var widths=470; var w=2;var widthss=widths+w;var heights=410; var heightss=heightss+w;var heightt=20;var counts=5;img1=new Image();img1.src='images/1.jpg';url1=new Image();url1.src='#';img2=new Image();img2.src='images/2.jpg';url2=new Image();url2.src='#';img3=new Image();img3.src='images/3.jpg';url3=new Image();url3.src='#';img4=new Image();img4.src='images/4.jpg';url4=new Image();url4.src='#';img5=new Image();img5.src='images/5.jpg';url5=new Image();url5.src='#';var nn=1; //当前所显示的滚动图var key=0; //标识是否为第一次开始执行var tt; //标识作用function change_img(){if(key==0){key=1;} //如果第一次执行KEY=1,表示已经执行过一次了。else if(document.all)//document.all仅IE6/7认识,firefox不会执行此段内容{document.getElementById("pic").filters[0].Apply(); //将滤镜应用到对像上document.getElementById("pic").filters[0].Play(duration=2); //开始转换document.getElementById("pic").filters[0].Transition=23;//转换效果}eval('document.getElementById("pic").src=img'+nn+'.src');//替换图片eval('document.getElementById("url").href=url'+nn+'.src'); //替换URL//替换ALTfor (var i=1;i<=counts;i++){document.getElementById("xxjdjj"+i).className='axx';}document.getElementById("xxjdjj"+nn).className='bxx'; //将当前页面的ID设置为选中状态nn++;if(nn>counts){nn=1;} //如果ID大于总图片数量。则从头开始循环tt=setTimeout('change_img()',4000); //在4秒后重新执行change_img()方法.}function changeimg(n)//点击黑条上的链接执行的方法。{nn=n; //当前页面的ID等于传入的N值,window.clearInterval(tt); //清除用于循环的TT//重新执行change_img();但change_img()内所调用的图片ID已经在此处被修改,会从新ID处开始执行.change_img();}//样式表document.write('<style>');document.write('.axx{padding:1px 6px;margin-left:3px;border-left:#cccccc 1px solid;font-size:12px;}');document.write('a.axx:link,a.axx:visited{text-decoration:none;color:#666;');document.write('line-height:12px;font:12px sans-serif;background-color:#eee;border:1px solid #666}');document.write('.bxx{padding:1px 6px;margin-left:3px;border-left:#cccccc 1px solid;}');document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#111;');document.write('line-height:12px;font:12px sans-serif;background-color:#fff;border:1px solid #111}');document.write('</style>');//内容部分document.write('<div style="width:'+widthss+'px;height:'+heights+'px;');document.write('overflow:hidden;text-overflow:clip;float:left;">');document.write('<div><a id="url" target="_blank"><img id="pic" ');document.write('style="border:0;');document.write('FILTER: progid:DXImageTransform.Microsoft.RevealTrans (duration=2,transition=23)"');document.write(' width='+widths+' height='+heights+' /></a></div>');document.write('<div style="filter:alpha(style=1,opacity=10,finishOpacity=90);');document.write('width:100%-2px;text-align:right;');document.write('top:-19px;position:relative;margin:-13px 19px 0 1px;height:22px;line-height:22px;');document.write('z-index:4000;"><div style="height:22px;line-height:22px;padding:2px 0 0 0;">');for(var i=1;i<counts+1;i++){document.write('<a href="javascript:changeimg('+i+');" id="xxjdjj'+i+'"');document.write(' class="axx" target="_self">'+i+'</a>');}document.write('</div></div></div>');change_img();</script></div><div class="you"><div class="youA"><p><a href="#" id="one1" onclick="setTab('one',1,3)" class="hover">新闻中心</a><a href="#" id="one2" onclick="setTab('one',2,3)">通知公告</a><a href="#" id="one3" onclick="setTab('one',3,3)">校内新闻</a></p></div><div class="youB"><div id="con_one_1" class="hover"><table width="440" border="0" cellspacing="0" cellpadding="0"><tr><td width="351" height="31"><p><a href="xinwen.html">关于蒙城县创新中学召开家长会的公告通知</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="xinwen.html">关于举办我校科技创新大赛的通知</a></p></td><td>(3月12日)</td></tr><tr><td width="351" height="31"><p><a href="xinwen.html">蒙城县创新中学关于做好对特殊群体儿童开展帮扶工作的</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="xinwen.html">蒙城县创新中学关于禁止非法使用未成年工人的通知..</a></p></td><td>(3月12日)</td></tr><tr><td width="351" height="31"><p><a href="xinwen.html">党的“十八大”基本情况、主要精神..</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="xinwen.html">蒙城县创新中学高三年级心理辅导计划..</a></p></td><td>(3月12日)</td></tr><tr><td width="351" height="31"><p><a href="xinwen.html">我校党员“寄语十八大”作品选登</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="xinwen.html">蒙城县秋季开学阶段学校安全综治工作检查..</a></p></td><td>(3月12日)</td></tr></table></div><div id="con_one_2" style="display:none"><table width="440" border="0" cellspacing="0" cellpadding="0"><tr><td width="351" height="31"><p><a href="tongzhi.html">关于“清明节”放假安排的通知</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="tongzhi.html">会议通知</a></p></td><td>(3月12日)</td></tr><tr><td height="31"><p><a href="tongzhi.html">关于贯彻落实改进工作作风密切联系群众的八项规定</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="tongzhi.html">学校党委工作要点</a></p></td><td>(3月12日)</td></tr><tr><td height="31"><p><a href="tongzhi.html">教学仪器设备校内公开采购评议结果公告</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="tongzhi.html">学校投影机维保项目招标公告</a></p></td><td>(3月12日)</td></tr><tr><td height="31"><p><a href="tongzhi.html">计算机等设备招标公告</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="tongzhi.html">上半年党日活动安排</a></p></td><td>(3月12日)</td></tr></table></div><div id="con_one_3" style="display:none"><table width="440" border="0" cellspacing="0" cellpadding="0"><tr><td width="351" height="31"><p><a href="xiaonei.html">我校隆重举行总结表彰暨开学典礼大会</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="xiaonei.html">我校召开校级精品课程建设工作座谈会</a></p></td><td>(3月12日)</td></tr><tr><td width="351" height="31"><p><a href="xiaonei.html">蒙城县创新中学首届青年教师课堂教学大奖赛表彰</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="xiaonei.html">我校举办学习贯彻党的十八大精神动员暨专题报告会</a></p></td><td>(3月12日)</td></tr><tr><td width="351" height="31"><p><a href="xiaonei.html">党的“十八大”基本情况、主要精神和重大意义</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="xiaonei.html">贾光宇书记在学习宣传和贯彻党的十八大精神动员会上..</a></p></td><td>(3月12日)</td></tr><tr><td width="351" height="31"><p><a href="xiaonei.html">大学生活漫谈讲座总结</a></p></td><td width="89">(3月12日)</td></tr><tr><td height="31"><p><a href="xiaonei.html">我院大学生志愿服务中心迎新生见面会</a></p></td><td>(3月12日)</td></tr></table></div></div><div class="kuaijie"><p><a href="denglu.html">登陆</a></p><p><a href="gaikuang.html">学校概况</a></p><p><a href="index-2.html">实训中心</a></p><p><a href="xinwen.html">新闻中心</a></p><p><a href="index-2.html">院系设置</a></p><p><a href="index-2.html">招生就业</a></p><p><a href="index-2.html">师资队伍</a></p><p><a href="index-2.html">科学研究</a></p><p><a href="index-2.html">学科建设</a></p><p><a href="index-2.html">国际交流</a></p><p><a href="index-2.html">数字校园</a></p><p><a href="index-2.html">信息资源</a></p></div></div></div><div class="clearit"></div><div class="liebiao"><div class="liebiao_l"><div class="liebiaoA"><h6>教育新闻</h6><span><a href="xinwen.html">more>></a></span></div><table width="470" border="0" cellspacing="2" cellpadding="0"><tr><td width="387" align="left"><a href="xinwen.html">关于蒙城县创新中学召开家长会的公告通知</a></td><td width="77">11月14日</td></tr><tr><td align="left"><a href="xinwen.html">安徽省高等职业教育“十一五”发展规划</a></td><td>11月14日</td></tr><tr><td align="left"><a href="xinwen.html">关于举办我校科技创新大赛的通知</a></td><td>11月14日</td></tr></table></div><div class="liebiao_r"><div class="liebiaoA"><h6>教育新闻</h6><span><a href="xinwen.html">more>></a></span></div><table width="470" border="0" cellspacing="2" cellpadding="0"><tr><td width="115" valign="top"><a href="xiaonei1.html"><img src="images/1.jpg" width="115" height="74" /></a></td><td width="114" valign="top">蒙城县创新中学首届青年教师课堂教学大奖赛表彰为进一步提高我校青...[<a href="xinwen1.html">更多</a>]</td><td width="111" valign="top"><a href="xiaonei2.html"><img src="images/2.jpg" width="111" height="72" /></a></td><td width="120" valign="top"><p>为做好这次新生接待工作,艺术设计系作了周密安排。由系主任曹永智亲自到场...[<a href="xinwen1.html">更多</a>]</p></td></tr></table></div><div class="clearit"></div></div><br /></div></center><div class="foot_bg"><div class="foot"><div class="foot_p"><p>版权所有 © <a href="index-2.html">蒙城县创新中学</a>联系我们 意见和建议 </p><p> 技术支持:xxxx </p></div></div></div></body></html>

💒CSS样式代码

@charset "utf-8";/* CSS Document */*{margin:0;padding:0;border:0; font-family:"宋体"}body {font-family: "宋体";font-size: 12px;color:#000000;line-height: 20px;text-align:left}td,th {font-family: "宋体";font-size: 12px;color: #000000;}a {color: #000000;}A:link {TEXT-DECORATION: none;}A:visited {TEXT-DECORATION: none; color:#333333}A:hover {TEXT-DECORATION: underline; color:#3399CC;}ul,li{list-style-type:none;}.clearit{clear:both;}#page{width:960px; margin:0 auto; padding-top:5px;}.top_bg{width:100%; height:108px; background:#8a0000;}.top{width:960px; margin:0 auto;}.youce{width:260px; float:right;}.youce p{text-align:right; line-height:30px; color:#FFFFFF;}.youce p a{color:#FFFFFF;}.sousuo{float:left; padding-top:20px;}.sousuo_in{width:150px; height:20px; padding-left:15px; background:url(../images/sousuo_in.jpg) no-repeat; float:left;}.sousuo_btn{width:21px; height:20px; background:url(../images/sousuo_btn.jpg) no-repeat; float:left;}.nav_bg{width:100%; height:40px; background:#ece5c9;}.nav{width:960px; height:40px; background:#ece5c9; margin:0 auto;}.nav p{text-align:center; font-size:14px; font-weight:bold; line-height:40px;}.nav p a{width:80px; height:40px; display:block; float:left;}.nav p a:hover{background:#8a0000; color:#FFFFFF;}.lunhuan{width:470px; float:left;}.you{width:470px; float:right;}.youA{width:470px; height:24px; padding-top:4px; background:#999999;}.youA p{padding-left:10px; line-height:24px; text-align:center; font-weight:bold; font-size:14px;}.youA p a{width:110px; height:24px; display:block; float:left; margin-left:10px; display:inline;}.youA p a:hover{background:#FFFFFF; color:#000000;}.youB{text-align:left; line-height:25px; font-size:13px; padding:5px 10px 5px;}.youA p .hover{background:#FFFFFF; color:#000000;}.kuaijie{width:459px; height:119px; background:url(../images/kuaijie.jpg) no-repeat;}.kuaijie p{width:114px; height:40px; line-height:40px; float:left; text-align:left; text-indent:50px;}.foot_bg{width:100%; height:96px; background:#8a0000;}.foot{width:960px; margin:0 auto;}.foot_p{padding-left:200px; padding-top:20px; color:#FFFFFF;}.foot_p a{color:#FFFFFF;}.foot_p a:hover{color:#000000;}.weizhi{width:960px; height:30px; line-height:30px; border-bottom:1px solid #f8eec1; text-align:left; margin-bottom:10px;}.xiaozuo{width:200px;float:left;}.xiaozuo ul li{width:200px; height:22px; line-height:22px; margin-bottom:10px; background:#f8eec1; text-align:center;}.xiaoyou{width:740px; float:right;}.xiaoyou h1{font-size:14px; font-weight:bold; text-align:center; border-bottom:1px dashed #f8eec1;}.neirong{width:740px; padding:10px 0; text-align:left;}.neirong a{color:#000000;}.neirong a:link{color:#000000;}.neirong a:hover{color:#990000;}.neirong a:visited{color:#0000FF;}.neirong table tr td{height:26px; line-height:26px;}.yuanxi table{border-left:1px solid #e0b9b9;border-top:1px solid #e0b9b9;}.yuanxi table tr td{height:22px; line-height:22px; text-indent:5px; text-align:left;border-right:1px solid #e0b9b9;border-bottom:1px solid #e0b9b9;}.yeshu{width:740px; height:24px; line-height:24px; text-align:center; background:#999999;}.yeshu a{color:#000000;}.yeshu a:visited{color:#000000;}.dongtu{width:230px; float:right;}.liebiao{width:960px; margin:0 auto;}.liebiao_l{width:470px; float:left;}.liebiaoA{width:470px; height:24px; line-height:24px; border-bottom:2px solid #999999; overflow:hidden;}.liebiaoA h6{font-size:14px; font-weight:bold; text-align:left; text-indent:5px; float:left;}.liebiaoA span{float:right; padding-right:10px;}.liebiao_l table tr td{height:24px; line-height:24px; border-bottom:1px dashed #999999;}

六、🥇 如何让学习不再盲目

很多刚入门编程的小白学习了基础语法,却不知道语法的用途,不知道如何加深映像,不知道如何提升自己,这个时候每天刷自主刷一些题就非常重要(百炼成神),可以去牛客网上的编程初学者入门训练。该专题为编程入门级别,适合刚学完语法的小白练习,题目涉及编程基础语法,基本结构等,每道题带有练习模式和考试模式,可还原考试模式进行模拟,也可通过练习模式进行练习 。

七、🎁更多干货

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

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

3.

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

獀索 公粽Hao名称:👉html网页设计成品

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