11个精美网页 您所在的位置:网站首页 web前端实战结课作业 11个精美网页

11个精美网页

2024-07-03 05:34| 来源: 网络整理| 查看: 265

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

精彩专栏推荐👇🏻👇🏻👇🏻👇🏻

❤ 【作者主页——获取更多优质源码】 ❤ 【web前端期末大作业——毕设项目精品实战案例(1000套)】

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

一、网页介绍

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> 电影电视剧 首页 电影 电视剧 电影院 登录丨 注册 < > 电影院 万达电影股份有限公司(以下简称万达电影 股票代码:002739.SZ)隶属于万达集团。2005年,万达电影院线成立,2015年A股上市,2017年正式更名为万达电影。业务范围从产业链下游放映业务向上延伸至电影投资、制作和发行及相关衍生业务,全面覆盖电影产业链。截至2020年12月31日,万达电影在全球拥有影院1704家,银幕17118块;包含国内直营影城700家、6099块银幕。其中,拥有44家杜比影院和370块IMAX银幕,IMAX银幕数量全球领先。 详情查看 订票 太平洋电影城是四川省电影公司全资影城、属太平洋电影院线旗下影院,创立于1992年12月,距今已23年历史,累计票房收入2.3亿元,接待观众超过2千余万。影城成立以来先后投资三千余万元,经数次装修改造,使影城始终引领电影时尚潮流。 地处最繁华的春熙路商圈核心位置, 拥有18个豪华电影厅,观众座席数2000多座,是全国影厅最多、节目最多、场次最多、人次最多的影城。率先引进数字3D电影,影厅内安装有世界顶级的英国杜比CP650(EX)数字处理器、 美国JBL音响、德国ISCO一体化镜头、美国QSC数字功放(DCA)、 6.1声道杜比数码立体声系统!详情查看 订票 百老汇电影中心有4间影院,共640个座位,还有1间叫Kubrick的书店,售卖电影、书籍及提供咖啡店服务。该处是除了已结业的影艺戏院外,香港少数播放非主流电影的戏院。 2009年11月,百老汇电影院(香港安乐影片有限公司)在北京开设了一家艺术影院——MOMA百老汇电影中心,这是北京第一座大型艺术影院。坐落在地标性建筑群当代MOMA(当代万国城)中, MOMA百老汇电影中心拥有三个放映屏幕、一个电影资料馆、一家书店和一间咖啡厅。 详情查看 订票 热门电影 查看更多 峰爆 困在时间的父亲 一级指控 寻龙诀 一曲倾情 热门电视剧 查看更多 加里森敢死队 情谜睡美人 双镜 突如其来的假期 奇妙博物馆 电影 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; } 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; } .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; } .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; } 3.js代码 // JavaScript Document window.onload = function(){ function $(param){ if(arguments[1] == true){ return document.querySelectorAll(param); }else{ return document.querySelector(param); } } var $box = $(".box"); var $box1 = $(".box-1 ul li",true); var $box2 = $(".box-2 ul"); var $box3 = $(".box-3"); var $length = $box1.length; var str = ""; for(var i =0;i str +=""+(i+1)+""; }else{ str += ""+(i+1)+""; } } $box2.innerHTML = str; var current = 0; var timer; timer = setInterval(go,4000); function go(){ for(var j =0;j current = 0; } $box1[current].style.display = "block"; $box2.children[current].className = "on"; current++; } for(var k=0;k clearInterval(timer); } $box1[k].onmouseout = function(){ timer = setInterval(go,4000); } } for(var p=0;p clearInterval(timer); }; $box3.children[p].onmouseout = function(){ timer = setInterval(go,4000); } } for(var u =0;u clearInterval(timer); for(var j=0;j timer = setInterval(go,2000); } } $box3.children[0].onclick = function(){ back(); } $box3.children[1].onclick = function(){ go(); } function back(){ for(var j =0;j current = $length; } $box1[current-1].style.display = "block"; $box2.children[current-1].className = "on"; current--; } } 三、个人总结

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

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

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

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

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



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有