大一学生《Web编程基础》期末网页制作 HTML+CSS+JavaScript 网页设计实例 企业网站制作
创始人
2024-03-28 14:23:37
0

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


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

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


文章目录🌰

  • 一、网页介绍📖
  • 一、网页效果🌌
  • 二、代码展示😈
    • 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代码结构 🧱

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




ONE PIECE

Welcome to the new world

「我是要成為海賊王的男人」

START YOUR JOURNEY

Saying

你们知道这片海洋的尽头,有着世界最珍贵的宝物吗?而且得到它的人就可以成为海贼王,是不是让人热血沸腾?前所未有的冒险正等着我们!

  • Title Language

    这世界,没错!一个追求自由任凭选择的世界,就在每个人的眼前无限地延伸。如果我们的梦想可以引导你的方向的话,就去追寻吧,在名为信念的旗帜下!

  • Title Language

    世代传承的意志、时代的变迁、人们的梦。这些都是阻挡不住的,只要人们继续追求自由的答案,这一切的一切都将永不停止。

  • Title Language

    财富、名声、势力---拥有全世界财富的海贼王哥尔罗杰,他在临刑前的一句话,让人们趋之若鹜、奔向大海!


2.CSS样式代码 🏠


/*reset*/
*{-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;margin: 0;padding: 0;font-family:PilGi, "Imprint MT Shadow","Brush Script MT";
}
a{text-decoration: none;
}
ul{list-style: none;
}
/*reset*/
.clearfix::after{content: ' ';display: block;clear: both;
}
.layout{width: 1100px;margin: 0 auto;}
.button{font-size: 20px;color: #fff;background: #f7ba3e;padding: 15px 25px;display: inline-block;border-radius: 5px;
}
.button:hover{background-color: #fdc42e;}
body,html{height: 100%;
}
body{font:14px/1.5 "微软雅黑";background: #F7F7F7;color: #444;
}
header{height: 100%;min-heigt:800px;background: #000 url("../image/bg.png")  center center no-repeat;background-size: cover;position: relative;z-index: 2;
}
header::before{content: ' ';display: block;position: absolute;top: 0;left: 0;bottom: 0;right: 0;background: rgba(0,0,0,0.3);z-index: -1;}
header .logo{float: left;color: #f7ba3e;font-size: 32px;margin-top: 10px;
}
header .nav{float: right;
}
header .nav > li{float: left;margin: 10px;
}
header .nav > li > a{display: block;padding: 5px;border-radius: 4px;color: #fff;font-size: 16px;
}
header .nav > li > a:hover{background: #f7ba3e;
}
header .introduce{position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);text-align: center;color: #fff;
}
header .introduce > h1{font-size: 32px;
}
header .introduce > h2{font-size: 50px;margin-top: 20px;
}
header .introduce .button{margin-top: 20px;
}section{margin-top: 100px;text-align: center;background-color: #F7F7F7;
}
section:first-of-type{/*background-color: #FFF;*/box-shadow: 0 2px 4px 1px rgba(0,0,0, 0.1);}
section > h2{font-size: 40px;
}
section > p{margin-top: 10px;margin-bottom: 50px;
}
section > ul .iconfont{font-size: 60px;
}
section > ul > li{width: 33.33%;float: left;padding: 10px 20px;
}
section > ul p{margin-top: 10px;
}
section .family figure{width: calc(33.33% - 20px);margin: 10px;height: 400px;float: left;background-color: #fff;box-shadow: 0 2px 4px 1px rgba(0,0,0, 0.3);border-radius: 20px;
}
section .family a{position: relative;display: block;height: 330px;}
section .family img{width: 100%;height: 100%;border-top-left-radius:20px ;border-top-right-radius:20px ;
}
section .family figcaption{font-size: 18px;font-weight: bold;margin-top: 10px;
}
section .family p{color: #666;margin-top: 5px;font-style: italic;
}
section .family a:hover::before {content: '⎈';position: absolute;top: 0;left: 0;right: 0;bottom: 0;background: rgba(253,208,72,0.8);color: #fff;font-size: 100px;display: flex;align-items: center;justify-content: center;border-top-left-radius:20px;border-top-right-radius:20px;}.describe{display: block;margin-top: 50px;text-align: center;border-radius: 20px;}
.down{margin: 10px auto;list-style: none;display: flex;padding-left: 0;flex-direction: column;/*flex-wrap: wrap;*/position: relative;z-index: 99;
}
.down:after{content: ' ';display: block;height: calc(100% - 200px);width: 0;position: absolute;top:50%;left: 50%;transform: translate(-50%,-50%);z-index: -1;border:1px solid #ccc;
}
.down > li > span{box-shadow: 0 2px 4px 1px rgba(0,0,0, 0.1);background-color: #fdc42e;border: 6px solid #eee;width:150px;height: 150px;color: #FFFFFF;border-radius: 50%;display: block;float:left;position:relative;right:50%;
}
.down > li{display: block;width: 150px;height: 200px;float:left;position:relative;left:50%;}
.down > li img{height: 100%;width: 100%;border-radius: 50%;display: block;
}
.matter{width: 300px;height: 100px;float:left;position:relative;top:-50%;right:-90%;font-size: 18px;}
.matter-left{float:right;position:relative;top:-50%;left:-180%;
}
.matter > p{color: #999;font-style: oblique;font-size: 14px;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp:4;
}
.matter > h4,
.matter > p{float:left;margin: 0;text-align: left;}
.matter-left > h4,
.matter-left > p{float:right;margin: 0;}section .group figure{width: calc(33.33% - 60px);margin: 30px;height: 300px;float: left;background-color: #fff;box-shadow: 0 2px 4px 1px rgba(0,0,0, 0.3);border-radius: 50%;border: 5px solid #fff;
}
section .group p{position: relative;display: block;height: 100%;}
section .group img{width: 100%;height: 100%;border-radius: 50%;
}section .group figcaption{font-size: 18px;font-weight: bold;margin-top: 10px;
}
.icon:hover{background: #fdc42e;
}
.icon {width: 3em;height: 3em;vertical-align: -0.15em;fill: currentColor;overflow: hidden;margin:10px;background: #222;border-radius: 50%;
}
section .p{font-style: inherit;width: 70%;margin: 100px auto;}
.contact{width: 100%;height: 400px;background: #fff url("../image/plat.jpg") no-repeat center center;background-size: cover;box-shadow: 0 2px 4px 1px rgba(0,0,0, 0.1);font-size: 20px;
}
.contact .private,
.email,
.cellphone{text-align: left;width: 45%;
}
.contact .message{text-align: right;display: inline-block;width: 45%;float: right;
}
.contact .message textarea{margin-top: 20px;width: 100%;height: 180px;font-size: 20px;
}
input[type="text"],
input[type="email"],
input[type="phone" ]{height: 50px;width: 100%;margin-top: 20px;border-radius: 5px;background: #F7F7F7;font-size: 20px;
}
.submit{display: inline-block;height: 50px;width: 200px;margin-top: 50px;}
.submit > input[type="submit"]{background: #fdd048;width: 100%;height: 100%;border-radius: 10px;border: 1px solid darkgoldenrod;color: #fff;font-size: 20px;
}
.submit > input[type="submit"]:hover{background: #fdc42e;
}
footer{height: 100px;
}
footer p{margin-top: 30px;float: left;}
footer .end{float: right;margin-top: 30px;}
footer .end a{color: #fdc42e;
}
footer a:hover{text-decoration: underline;
}

三、个人总结😊

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

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

四、更多干货🚀

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

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

3.以上内容技术相关问题😈欢迎一起交流学习🔥在这里插入图片描述

相关内容

热门资讯

银河麒麟V10SP1高级服务器... 银河麒麟高级服务器操作系统简介: 银河麒麟高级服务器操作系统V10是针对企业级关键业务...
【NI Multisim 14...   目录 序言 一、工具栏 🍊1.“标准”工具栏 🍊 2.视图工具...
AWSECS:访问外部网络时出... 如果您在AWS ECS中部署了应用程序,并且该应用程序需要访问外部网络,但是无法正常访问,可能是因为...
不能访问光猫的的管理页面 光猫是现代家庭宽带网络的重要组成部分,它可以提供高速稳定的网络连接。但是,有时候我们会遇到不能访问光...
AWSElasticBeans... 在Dockerfile中手动配置nginx反向代理。例如,在Dockerfile中添加以下代码:FR...
Android|无法访问或保存... 这个问题可能是由于权限设置不正确导致的。您需要在应用程序清单文件中添加以下代码来请求适当的权限:此外...
月入8000+的steam搬砖... 大家好,我是阿阳 今天要给大家介绍的是 steam 游戏搬砖项目,目前...
​ToDesk 远程工具安装及... 目录 前言 ToDesk 优势 ToDesk 下载安装 ToDesk 功能展示 文件传输 设备链接 ...
北信源内网安全管理卸载 北信源内网安全管理是一款网络安全管理软件,主要用于保护内网安全。在日常使用过程中,卸载该软件是一种常...
AWS管理控制台菜单和权限 要在AWS管理控制台中创建菜单和权限,您可以使用AWS Identity and Access Ma...