html网页制作代码大全——大学生影视主题网页制作——图图影视影院5页HTML+CSS+JavaScript...
  DRKavBpyUHgO 2023年11月02日 43 0


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(源文件)所需的知识点。


一、网页效果

html网页制作代码大全——大学生影视主题网页制作——图图影视影院5页HTML+CSS+JavaScript..._dreamweaver

html网页制作代码大全——大学生影视主题网页制作——图图影视影院5页HTML+CSS+JavaScript..._css_02

html网页制作代码大全——大学生影视主题网页制作——图图影视影院5页HTML+CSS+JavaScript..._javascript_03

html网页制作代码大全——大学生影视主题网页制作——图图影视影院5页HTML+CSS+JavaScript..._html_04

html网页制作代码大全——大学生影视主题网页制作——图图影视影院5页HTML+CSS+JavaScript..._前端_05


二、代码展示


1.HTML代码

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


<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/bangdan.css">
<title>榜单</title>
</head>

<body>
<div class="box">
<div class="box1">
<a href="tutu1.html"><span class="name"><span class="mingzi">------图图影视影院</span></span></a>
<div class="city1">城市:沧州</div>
<div class="city2"><div class="city3"><a href="#"><span class="mingzi">定位城市:定位失败</span></a></div>
<div class="city4">定位失败</div></div>
<div class="login"><a href="login.html"><span class="mingzi">登录/</span></a></div>
<div class="exit"><a href="tutu1.html"><span class="mingzi">退出</span></a></div>
<div class="search1">
<input type="text" class="input" placeholder="找影视剧、影人、影院">
</div>
<div class="search2">
<input class="submit" type="submit" value="搜索">
</div>
</div>
<div class="one">
<ul>
<li><a href="tutu1.html" class="three"><span class="mingzi">首页</span></a></li>
<li><a href="movie.html" class="three"><span class="mingzi">电影</span></a></li>
<li><a href="yingyuan.html" class="three "><span class="mingzi">影院</span></a></li>
<li><a href="bangdan.html" class="three active"><span class="mingzi">榜单</span></a></li>
<li><a href="#" class="three"><span class="mingzi">热点</span></a></li>
</ul>
</div>
<div class="box2">
<span><a href="#" class="two active"><span class="mingzi">热映口碑榜</span></a></span> <a href="#"><span class="sort4"><span class="mingzi">最受期待榜</span></a><a href="#"> <span class="sort4"><span class="mingzi">国内票房榜</span></a></div>
<div class="box3">
<div class="bg">
<div class="sheet">
<span class="top">TOP</span>
<p class="tp"></p>
<p><a href="https://v.qq.com/x/cover/jqq4vlwrxzfdxi4/p0020vf6862.html"><span class="mingzi">长津湖</span></a></p>
<p><a href="https://v.qq.com/x/cover/mzc00200kbornzq/c3304913l9d.html"><span class="mingzi">梅兰芳</span></a></p>
<p><a href="https://v.qq.com/x/cover/mzc00200v3x7zg9/t3308lhnf7i.html"><span class="mingzi">扬名立万</span></a></p>
<p><a href="https://v.qq.com/x/cover/mzc00200wh6nz2g/o3219tg84hr.html"><span class="mingzi">天书奇谭</span></a></p>
</div>
</div>
</div>
<div class="bottom">
<p>
<a href="#"><span class="mingzi">商务合作邮箱:xxx@qq.com</span></a> <a href="#"><span class="mingzi">客服电话:xxx</span></a > <a href="#"><span class="mingzi">违法和不良信息举报电话:xxx</span></a>
</p>
<p><a href="#"><span class="mingzi">xxx</span></a></p>
<p>
<a href="#"><span class="mingzi">图图影视影院</span></a> </p>
</div>

</div>
</body>
</html>



2.CSS代码


body{
margin: 0 100px;
padding: 0;

}
.box{
width: 1200px;
position: relative;
background: #FFF;
}
.box1{
width: 100%;
height: 125px;
background:url(../image/log.png) #FFF no-repeat;
background-size: 250px 125px;
}
a{
text-decoration: none;
color:#000;
}
.name{
width: 300px;
height: 125px;
position: absolute;
left: 270px;
top: 0px;
line-height: 125px;
text-align: center;
font-size:30px;
color:#00F;
}
.city1{
width: 87px;
height: 25px;
position: absolute;
left: 980px;
top: 30px;
line-height: 25px;
text-align: center;
}
.city2{
width: 146px;
height: 25px;
position: absolute;
left: 1056px;
top: 30px;
line-height: 25px;
text-align: center;
}
.city4 {
width:146px;
height:30px;
display: none;
position: absolute;
background-color:#CCC;
}
.city2:hover .city4 {
display: block;
}
.city2:hover{
border-bottom: 30px solid #666;
}
.login{
width: 70px;
height: 25px;
position: absolute;
left: 1107px;
top: 0px;
line-height: 25px;
text-align: center;
}
.exit{
width: 60px;
height: 25px;
position: absolute;
left: 1150px;
top: 0px;
line-height: 25px;
text-align: center;
}
.search1{
width: 100px;
height: 25px;
position: absolute;
left: 977px;
top: 101px;
}
.search2{
width: 50px;
height: 25px;
position: absolute;
left: 1156px;
top: 102px;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
border: 1px solid #F66;
background-color:#F66;
width:1200px;
}
li {
float: left;
}
li a {
display: block;
color: #000;
text-align: center;
padding: 10px 100px;
}
li .active {
background-color: #FC0;
}
.mingzi{
display:inline-block;
}
.mingzi:hover{
color:#F00;
}
span .active{
color:#30F;
}
.box2{
width:1100px;
text-align:center;
position:absolute;
top:175px;
}
.box3{
width:1100px;
position:absolute;
top:190px;
}
.bg{
width:600px;
height:550px;
background-image:repeating-radial-gradient(circle at 50% 50%,#333,#000 1%);
margin:50px auto;
padding:40px;
border-radius:50%;
padding-top:50px;
border:10px solid #ccc;
}
.sheet{
width:372px;
height:530px;
background:#fff;
border-radius:30px;
box-shadow:15px 15px 12px #000;
margin:0 auto;
}
.sheet p{
width:372px;
height:55px;
background:#ccc no-repeat 70px 20px;
margin-bottom:2px;
font-size:10px;
color:#d6d6d6;
line-height:55px;
text-align:center;
font-family:"微软雅黑";
}
.sheet .tp{
width:372px;
height:247px;
background:#fff;
background-image:url(../image/yingyuantubiao.png);
background-size:50% 50%;
background-repeat:no-repeat;
background-position:87px 16px,99px 192px;
border-radius:30px 30px 0 0;
}
.top{
width:372px;
height:60px;
position:absolute;
top:270px;
left:360px;
font-size:50px;
line-height:60px;
text-align:center;
}
.sheet .yj{
border-radius:0 0 30px 30px;
}
.bottom{
width:1200px;
position:absolute;
top:985px;
text-align:center;
background:#06F;
}



三、个人总结

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

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


【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  PVcilKyJJTzb   2023年11月02日   49   0   0 nginxdockerhtml
DRKavBpyUHgO