1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > web前端期末大作业——用HTML+CSS做一个漂亮简单的电影主题网站

web前端期末大作业——用HTML+CSS做一个漂亮简单的电影主题网站

时间:2023-03-24 21:32:54

相关推荐

web前端期末大作业——用HTML+CSS做一个漂亮简单的电影主题网站

HTML实例网页代码, 本实例适合于初学HTML的同学。该实例里面有设置了css的样式设置,有div的样式格局,这个实例比较全面,有助于同学的学习,本文将介绍如何通过从头开始设计个人网站并将其转换为代码的过程来实践设计。

文章目录

一、网页介绍一、网页效果二、代码展示1.HTML代码2.CSS代码三、个人总结四、更多干货

一、网页介绍

1网页简介:此作品为学生个人主页网页设计题材,HTML+CSS 布局制作,web前端期末大作业,大学生网页设计作业源码,这是一个不错的网页制作,画面精明,代码为简单学生水平, 非常适合初学者学习使用。

2.网页编辑:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++等任意html编辑软件进行运行及修改编辑等操作)。

3.知识应用:技术方面主要应用了网页知识中的: Div+CSS、鼠标滑过特效、Table、导航栏效果、Banner、表单、二级三级页面等,视频、 音频元素 、Flash,同时设计了Logo(源文件)所需的知识点。

一、网页效果

二、代码展示

1.HTML代码

代码如下(示例):以下仅展示部分代码供参考~

<!DOCTYPE html><html><head><meta charset="utf-8"><link type="text/css" rel="stylesheet" href="css/style.css" /><script type="text/javascript" src="js/js.js"></script><title>电影电视剧</title></head><body><div class="zxnav"><header class="clearfix"> <a href="#" class="logo"><img src="images/logo.png"/></a><ul><li><a href="index.html">首页</a></li><li><a href="dianying.html">电影</a><ul><li><a href="#">恐怖电影</a> </li><li><a href="#">爱情电影</a> </li></ul></li><li><a href="dianshiju.html">电视剧</a><ul><li><a href="#">古装电视剧</a> </li><li><a href="#">搞笑电视剧</a> </li></ul></li></ul><div class="denglu"> <a href="login.html" class="dl">登录</a>丨 <a href="练习.html" class="zc">友情链接1</a>丨 <a href="平时作业6五环.html" class="zc">友情链接2</a> </div></header></div><div class="wrapin"><div class="banner_con clearfix"><div class="banner_box "><div class="box-1"><ul><li><a href="#"><img src="images/banner_01.jpg"></img></a> </li><li><a href="#"><img src="images/banner_02.jpg"></img></a> </li><li><a href="#"><img src="images/banner_03.jpg"></img></a> </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><div class="con"><div class="title"><h2>电影院</h2></div><div class="about clearfix"><div class="text"><p>万达电影股份有限公司(以下简称万达电影 股票代码:002739.SZ)隶属于万达集团。,万达电影院线成立,A股上市,正式更名为万达电影。业务范围从产业链下游放映业务向上延伸至电影投资、制作和发行及相关衍生业务,全面覆盖电影产业链。截至12月31日,万达电影在全球拥有影院1704家,银幕17118块;包含国内直营影城700家、6099块银幕。其中,拥有44家杜比影院和370块IMAX银幕,IMAX银幕数量全球领先。 </p><a href="#" class="btn">详情查看</a> <a href="#" class="btn2">订票</a></div><div class="pic"><img src="images/c1.jpg"/></div></div><div class="about clearfix"><div class="text"><p>太平洋电影城是四川省电影公司全资影城、属太平洋电影院线旗下影院,创立于1992年12月,距今已历史,累计票房收入2.3亿元,接待观众超过2千余万。影城成立以来先后投资三千余万元,经数次装修改造,使影城始终引领电影时尚潮流。 地处最繁华的春熙路商圈核心位置, 拥有18个豪华电影厅,观众座席数2000多座,是全国影厅最多、节目最多、场次最多、人次最多的影城。率先引进数字3D电影,影厅内安装有世界顶级的英国杜比CP650(EX)数字处理器、 美国JBL音响、德国ISCO一体化镜头、美国QSC数字功放(DCA)、 6.1声道杜比数码立体声系统!</p><a href="#" class="btn">详情查看</a> <a href="#" class="btn2">订票</a></div><div class="pic"><img src="images/c2.jpg"/></div></div><div class="about clearfix"><div class="text"><p>百老汇电影中心有4间影院,共640个座位,还有1间叫Kubrick的书店,售卖电影、书籍及提供咖啡店服务。该处是除了已结业的影艺戏院外,香港少数播放非主流电影的戏院。11月,百老汇电影院(香港安乐影片有限公司)在北京开设了一家艺术影院——MOMA百老汇电影中心,这是北京第一座大型艺术影院。坐落在地标性建筑群当代MOMA(当代万国城)中, MOMA百老汇电影中心拥有三个放映屏幕、一个电影资料馆、一家书店和一间咖啡厅。</p><a href="#" class="btn">详情查看</a> <a href="#" class="btn2">订票</a> </div><div class="pic"><img src="images/c3.jpg"/></div></div></div><div class="con"><div class="title"><h2>热门电影</h2><a href="dianying.html">查看更多</a> </div><ul class="game_list clearfix"><li> <a href="#" class="box"><div class="pic"><img src="images/1.jpg"/></div><p>峰爆</p></a> </li><li> <a href="#" class="box"><div class="pic"><img src="images/2.jpg"/></div><p>困在时间的父亲</p></a> </li><li> <a href="#" class="box"><div class="pic"><img src="images/3.jpg"/></div><p>一级指控</p></a> </li><li> <a href="#" class="box"><div class="pic"><img src="images/4.jpg"/></div><p>寻龙诀</p></a> </li><li> <a href="#" class="box"><div class="pic"><img src="images/5.jpg"/></div><p>一曲倾情</p></a> </li></ul></div><div class="con"><div class="title"><h2>热门电视剧</h2><a href="dianshiju.html">查看更多</a> </div><ul class="game_list clearfix"><li> <a href="#" class="box"><div class="pic"><img src="images/11.jpg"/></div><p> 加里森敢死队</p></a> </li><li> <a href="#" class="box"><div class="pic"><img src="images/22.jpg"/></div><p>情谜睡美人</p></a> </li><li> <a href="#" class="box"><div class="pic"><img src="images/33.jpg"/></div><p>双镜</p></a> </li><li> <a href="#" class="box"><div class="pic"><img src="images/44.jpg"/></div><p>突如其来的假期</p></a> </li><li> <a href="#" class="box"><div class="pic"><img src="images/55.png"/></div><p>奇妙博物馆</p></a> </li></ul></div><marquee οnmοuseοver='this.stop()' οnmοuseοut='this.start()' direction="up" behavior="scroll" scrollamount="1" scrolldelay="0" loop="-1" width="1200" height="50" bgcolor="#FFFFFF" hspace="10" vspace="10">近期电影院推出众多热播电影,包含如下:困在时间的父亲、寻龙诀、一曲倾晴、一级指控等等。除此以外还有一些电视剧。静等您的观看!<br>日后会推出什么系列的电影电视剧,让我们拭目以待吧!</marquee><footer> 版权所属</footer></div></body></html>

2.CSS代码

* {margin: 0;padding: 0;}body {margin: 0 auto;font-size: 14px;background: #000;background-size: auto;color: #333;position: relative;}img {border: none;}a {cursor: pointer;color: #333;text-decoration: none;outline: none;}ul {list-style-type: none;}.zxnav ul{list-style:none;}.zxnav ul li{float:left;}.zxnav ul li a{text-decoration:none;display:block;width:300px;line-height:32px;text-align:center;background-color:#000000;color:#FFFFFF;font-size:24px;}.zxnav{width:1200px;margin:0;}.zxnav ul li ul li{clear:both;}.zxnav ul li ul{display:none;}.zxnav ul li:hover ul{display:block;}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: 1200px;margin-left: auto;margin-right: auto;}.logo {display: block;width:80px;margin: 5px 0;float: left;padding-right:100px;}.logo img {width: 100%;}header {height: 80px;padding: 0 15px}.nav {float: left;line-height: 80px;}.nav li {display: inline-block;width: 80px;font-size: 18px;text-align: center;}.nav li a {color: #fff;}.denglu {float: right;color: #fff;line-height: 80px;position:absolute;right:165px;}.denglu a {color: #fff;font-size: 14px;margin: 0 5px;display: inline-block;}.banner {width: 100%;}.banner img {display: block;width: 100%;}.banner_con {margin: 20px 0; position:relative}.banner_box {float: left;width: 1200px;height: 410px;overflow: hidden;position: relative;}.box-1 ul {}.box-1 ul li {width: 100%;height: 410px;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: 20px;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)}.banner_rt {float: left;width: 220px;position:absolute;top:0;right:0;height: 410px;background: #0F161F;padding: 10px;box-sizing: border-box;}.banner_rt h2 {padding-bottom: 5px;color: #fff;font-size: 18px;}.banner_rt li {margin: 8px 0;height: 110px;border: 1px solid #ccc;overflow: hidden;}.banner_rt img {width: 100%;height: 100%;-webkit-transition: all 0.3s;-moz-transition: all 0.3s;-o-transition: all 0.3s;transition: all 0.3s;}.banner_rt img:hover {transform: scale(1.1);-webkit-transform: scale(1.1); /*兼容-webkit-引擎浏览器*/-moz-transform: scale(1.1);}.con {margin-top: 20px;background: #222;padding: 15px;}.title {color: #fff;border-bottom: 1px solid #666;margin: 15px 0;position: relative;}.title h2 {width: 180px;font-weight: 600;line-height: 40px;font-size:24px;border-bottom: none;}.title2 {color: #fff;margin: 15px 0;}.title2 h2 {display: block;padding: 0 15px;text-align: center;font-weight: 100;line-height: 40px;font-size: 18px;border: 1px solid #fff;}.title a {display: block;font-size: 14px;color: #ccc;line-height: 40px;position: absolute;right: 0;top: 0;}.game_list {margin: 15px -15px;}.game_list li {float: left;width: 20%;padding: 15px;box-sizing: border-box;}.game_list li .box {display: block;background: #214575;}.game_list li .pic {width: 100%;height: 300px;overflow: hidden;}.game_list li .pic img {width: 100%;height: 100%;object-fit: cover;-webkit-transition: all 0.3s;-moz-transition: all 0.3s;-o-transition: all 0.3s;transition: all 0.3s;}.game_list li .pic img:hover {transform: scale(1.1);-webkit-transform: scale(1.1); /*兼容-webkit-引擎浏览器*/-moz-transform: scale(1.1);}.game_list li p {line-height: 40px;text-align: center;color: #fff;font-size: 16px;}footer {background: #0F161F;text-align: center;line-height: 50px;font-size: 16px;color: #fff;margin-top: 20px;}.about {line-height: 26px;color: #fff;font-size: 14px;}.about .text {float: left;width: 68%;padding-top:100px;}.btn{background:#006699; display:inline-block; font-size:19px; width:120px; line-height:40px; color:#fff; text-align:center; margin-top:20px}.btn2{background:#CC6666; display:inline-block; font-size:19px; width:120px; line-height:40px; color:#fff; text-align:center; margin-top:20px}.about .pic {float: right;width: 30%;margin-top: 20px;}.about .pic img {width: 100%;}.hm_vdo {width: 800px;margin: 30px auto;display: block;}form {color: #fff;width: 400px;display: block;margin: 20px auto;}form h2 {text-align: center;font-size: 20px;margin: 30px 0;}form .in {display: block;margin: 10px 0;}form .in p {font-size: 16px;margin-bottom: 10px;}form .in .phone {width: 100%;padding: 0 15px;border: none;box-sizing: border-box;height: 40px;border-radius: 5px;background: #fff;}form .but {width: 100%;height: 40px;color: #fff;border: none;border-radius: 5px;background: #06c3ff;margin: 20px 0;}form a {display: block;color: #eee;font-size: 14px;}.details .pic {float: left;width: 15%;height: 243px;}.dl{font-size:20px;}.details .pic img {width: 100%;height: 100%;}.details .text {float: right;width: 83%;height: 243px;color: #fff;}.details .text h2 {font-size: 24px;margin-bottom:30px;}.details .text p {font-size: 16px;line-height: 26px;}.txt{color:#fff; line-height:30px;}.txt p{margin:10px 0}.table_a {font-size: 12px;margin: 10px 0;margin-top:40px;}.table_a td {line-height: 26px;}.leix h4 {font-size: 14px;color: #fff;font-weight: 100;margin-bottom: 10px;}.leix a {padding: 3px 8px;margin-bottom: 5px;margin-right: 5px;background: #0e1e34;color: #67c1f5;display: inline-block;}

三、个人总结

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

页面分为页头、菜单导航栏(最好可下拉)、中间内容板块、页脚四大部分;所有页面相互超链接,可到三级页面,有5-10个页面组成;页面样式风格统一布局显示正常,不错乱,使用Div+Css技术;菜单美观、醒目,二级菜单可正常弹出与跳转;要有JS特效,如定时切换和手动切换图片新闻;页面中有多媒体元素,如gif、视频、音乐,表单技术的使用;页面清爽、美观、大方,不雷同。网站前端程序不仅要能够把用户要求的内容呈现出来,还要满足布局良好、界面美观、配色优雅、表现形式多样等要求。

四、更多干货

1.看到这里了就【点赞收藏博文】三连支持下吧,你的支持是我创作的动力,【观注作者 |获取更多源码| 优质文章】

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

3.以上内容技术相关问题可以相互学习交流

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