HTML+CSS大作业:使用html设计一个简单好看的公司官网首页 浮动布局
创始人
2024-04-16 12:46:01
0

🎉精彩专栏推荐 💭文末获取联系
✍️ 作者简介: 一个热爱把逻辑思维转变为代码的技术博主
💂 作者主页: 【主页——🚀获取更多优质源码】
🎓 web前端期末大作业: 【📚毕设项目精品实战案例 (1000套) 】
🧡 程序员有趣的告白方式:【💌HTML七夕情人节表白网页制作 (110套) 】
🌎超炫酷的Echarts大屏可视化源码:【🔰 Echarts大屏展示大数据平台可视化(150套) 】
🔖 HTML+CSS+JS实例代码: 【🗂️HTML+CSS+JS实例代码 (炫酷特效网页代码) 继续更新中…】
🎁 免费且实用的WEB前端学习指南: 【📂web前端零基础到高级学习视频教程 120G干货分享】
🥇 关于作者: 💬历任研发工程师,技术组长,教学总监;曾于2016年、2020年两度荣获CSDN年度十大博客之星。 十载寒冰,难凉热血;多年过去,历经变迁,物是人非。 然而,对于技术的探索和追求从未停歇。 💪坚持原创,热衷分享,初心未改,继往开来!


📂文章目录

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


一、👨‍🎓网站题目

👒 公司官网网站 、企业官网、酒店官网、等网站的设计与制作。


二、✍️网站描述

🏷️ 网页中包含:Div+CSS、鼠标滑过特效、Table、导航栏效果、banner、表单、二级三级页面等,视频音频元素,同时设计了logo(源文件),基本期末作业所需的知识点全覆盖。

🏅 一套优质的💯网页设计应该包含 (具体可根据个人要求而定)

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

三、📚网站介绍

📔网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。

📓网站程序方面:计划采用最新的网页编程语言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结构代码




首页

客服电话:0000-000-000China(中文) | English(英文)

新闻中心

媒体举报

联系我们

从中国企业企业文化的现实出发...[0000-00-00]

从中国企业企业文化的现实出发...[0000-00-00]

从中国企业企业文化的现实出发...[0000-00-00]

从中国企业企业文化的现实出发...[0000-00-00]

从中国企业企业文化的现实出发...[0000-00-00]

从中国企业企业文化的现实出发...[0000-00-00]

从中国企业企业文化的现实出发...[0000-00-00]

从中国企业企业文化的现实出发...[0000-00-00]

111

媒体报道

报道新闻的内容内容内容内容内容...[详情]

111

媒体报道

报道新闻的内容内容内容内容内容...[详情]

111

媒体报道

报道新闻的内容内容内容内容内容...[详情]

服务热线:0000-000-000

企业电话:000-00000000

企业地址:xxxxxxxxxxxxxxxxxxxxxx

主营业务
业务名称
业务名称
业务名称
业务名称

发展历程

蓬勃发展,兴旺昌盛

资质荣誉

重视合作,确保质量,严守承诺

媒体报道

振兴民族产业,走在国际前沿

诚聘精英

有品质有市场,有改善有进步

分享:

企业简介

企业简介

企业简介

企业简介

企业简介

企业简介

下属企业

下属企业

下属企业

下属企业

下属企业

下属企业

新闻中心

新闻中心

新闻中心

新闻中心

新闻中心

新闻中心

主营业务

主营业务

主营业务

主营业务

主营业务

主营业务

企业文化

企业文化

企业文化

企业招聘

企业招聘

企业招聘

联系我们

联系我们

版权所有:xxxx企业名称 备案号:?icp备00000号

服务热线:0000-000-000

💒CSS样式代码


*{padding: 0;margin: 0;
}
div{box-sizing: border-box;
}
img{width: 100%;height: 100%;display: block;
}
a{text-decoration: none;
}
.main{width: 100%;height: 100%;background-color: #fff;
}
.main .header{width: 100%;height: 120px;
}
.main .header .header_box{display: flex;justify-content: space-between;align-items: center;width: 1320px;height: 100%;margin: auto;
}
.main .header .header_box .left{width: 273px;height: 41px;
}
.main .header .header_box .right{position: relative;height: 100%;width: 840px;display: flex;flex-direction: column;justify-content: space-between;padding: 10px 0;
}
.main .header .header_box .top{text-align: right;color: #808080;font-size: 16px;
}
.main .header .header_box .middle{position: relative;width: 220px;height: 30px;border: 1px solid #0058a6;margin-left: 598px;
}
.main .header .header_box .middle::before{content: '';position: absolute;top: 50%;right: 10px;transform: translateY(-50%);display: block;background: url("../image/search.jpg") no-repeat;background-size: 100% 100%;width: 28px;height: 23px;-webkit-transform: translateY(-50%);-moz-transform: translateY(-50%);-ms-transform: translateY(-50%);-o-transform: translateY(-50%);
}
.main .header .header_box .middle input{width: 100%;height: 100%;border: none;background: none;
}
.main .header .header_box .bot{display: flex;justify-content: flex-end;
}
.main .header .header_box .bot a{font-size: 18px;color: #4c4c4c;margin-left: 40px;white-space: nowrap;padding-bottom: 8px;transition: all .3s;-webkit-transition: all .3s;-moz-transition: all .3s;-ms-transition: all .3s;-o-transition: all .3s;
}
.main .header .header_box .bot a:hover{color: #0058a6;height: 100%;font-weight: bold;border-bottom:2px solid #0058a6;
}
.main .header .header_box .bot a.on{height: 100%;border-bottom: 2px solid #0058a6;
}
.main .banner{width: 100%;
}
.main .banner img{width: 100%;height: auto;
}
.main .news{width: 100%;
}
.main .news .new_box{width: 1320px;margin: 45px auto 0;
}
.main .news .new_box .title{display: flex;justify-content: space-between;border-bottom: 1px solid #0058a6;
}
.main .news .new_box .title p{font-size: 22px;color: #000;font-weight: bold;line-height: 40px;}
.main .news .new_box .title p:nth-of-type(1),.main .news .new_box .new_list .news_item:nth-of-type(1){width: 440px;
}
.main .news .new_box .title p:nth-of-type(2),.main .news .new_box .new_list .news_item:nth-of-type(2){width: 480px;
}
.main .news .new_box .title p:nth-of-type(3),.main .news .new_box .new_list .news_item:nth-of-type(3){width: 340px;
}
.main .news .new_box .new_list{display: flex;justify-content: space-between;
}
.main .news .new_box .new_list .news_item:nth-of-type(1) p:hover .tit{color: #0058a6;font-weight: bold;
}
.main .news .new_box .new_list .news_item:nth-of-type(1) p{display: flex;justify-content: space-between;align-items: center;line-height: 32px;transition: all .3s;-webkit-transition: all .3s;-moz-transition: all .3s;-ms-transition: all .3s;-o-transition: all .3s;
}
.main .news .new_box .new_list .news_item:nth-of-type(1) p .tit{position: relative;padding-left: 20px;color: #808080;font-size: 14px;
}
.main .news .new_box .new_list .news_item:nth-of-type(1) p .tit::before{content: '';display: block;position: absolute;top: 50%;transform: translateY(-50%);left: 0;width: 4px;height: 4px;background-color: #0058a6;-webkit-transform: translateY(-50%);-moz-transform: translateY(-50%);-ms-transform: translateY(-50%);-o-transform: translateY(-50%);
}
.main .news .new_box .new_list .news_item:nth-of-type(1) p .time{color: #808080;font-size: 14px;
}
.main .news .new_box .new_list .news_item:nth-of-type(2) .new_middle{display: flex;justify-content: space-between;align-items: center;margin-top: 9px;transition: all .3s;-webkit-transition: all .3s;-moz-transition: all .3s;-ms-transition: all .3s;-o-transition: all .3s;
}
.main .news .new_box .new_list .news_item:nth-of-type(2) .new_middle:hover .tit{color: #0058a6;
}
.main .news .new_box .new_list .news_item:nth-of-type(2) .new_middle:hover img{transform: scale(1.1);-webkit-transform: scale(1.1);-moz-transform: scale(1.1);-ms-transform: scale(1.1);-o-transform: scale(1.1);
}
.main .news .new_box .new_list .news_item:nth-of-type(2) .new_middle .tips{width: 130px;height: 73px;text-align: center;line-height: 73px;background: url("../image/itemBg.gif") no-repeat;background-size: 100% 100%;color: #fff;padding-right: 10px;
}
.main .news .new_box .new_list .news_item:nth-of-type(2) .new_middle .news_img{width: 106px;height: 75px;margin: 0 16px 0 16px;overflow: hidden;
}
.main .news .new_box .new_list .news_item:nth-of-type(2) .new_middle  .msg{height: 75px;display: flex;flex-direction: column;justify-content: space-between;width: 207px;
}
.main .news .new_box .new_list .news_item:nth-of-type(2) .new_middle  .tit{color: #4c4c4c;font-size: 18px;font-weight: bold;
}
.main .news .new_box .new_list .news_item:nth-of-type(2) .new_middle .con{color: #4c4c4c;font-size: 16px;
}
.main .news .new_box .new_list .news_item:nth-of-type(3) {}
.main .news .new_box .new_list .news_item:nth-of-type(3) .top_img{width: 100%;margin-top: 9px;
}
.main .news .new_box .new_list .news_item:nth-of-type(3) P{color: #808080;font-size: 18px;margin-top: 16px;
}
.main .yw{width: 100%;margin-top: 50px;
}
.main .yw .yw_box .title{width: 1320px;margin: auto;height: 44px;line-height: 44px;color: #000000;font-size: 22px;border-bottom: 1px solid   #0058a6;margin-bottom: 20px;
}
.main .yw .yw_box {width: 1320px;margin: auto;
}
.main .yw .yw_box .list{display: flex;justify-content: space-between;width: 1320px;margin: auto;
}
.main .yw .yw_box .item{width: 310px;transition: all .3s;-webkit-transition: all .3s;-moz-transition: all .3s;-ms-transition: all .3s;-o-transition: all .3s;
}
.main .yw .yw_box .item:hover{box-shadow: 10px 10px 10px #ddd;
}
.main .yw .yw_box .item:hover img{transform: scale(1.1);-webkit-transform: scale(1.1);-moz-transform: scale(1.1);-ms-transform: scale(1.1);-o-transform: scale(1.1);
}
.main .yw .yw_box .item .top_img{width: 100%;overflow: hidden;
}
.main .yw .yw_box .item .txt{width: 100%;height: 70px;display: flex;justify-content: space-between;align-items: center;padding: 0 10px;background-color: #f0f0f2;
}
.main .yw .yw_box .item .txt span{font-size: 20px;font-weight: bold;
}
.main .yw .yw_box .item .txt  img{width: 25px;height: 25px;}
.main .yw .yw_box  .hf{width: 100%;margin: 30px 0;display: flex;justify-content: space-between;
}
.main .yw .yw_box  .hf .hf_item{width: 310px;display: flex;align-items: center;
}
.main .yw .yw_box  .hf .hf_item:hover .txt1{color: #0058a6;
}
.main .yw .yw_box  .hf .hf_item .img{width: 60px;height: 60px;
}
.main .yw .yw_box  .hf .hf_item .txt{margin-left: 20px;
}
.main .yw .yw_box  .hf .hf_item .txt .txt1{font-size: 22px;font-weight: bold;
}
.main .yw .yw_box  .hf .hf_item .txt .txt2{color: #4c4c4c;font-size: 16px;margin-top: 10px;
}.main .share{width: 100%;height: 120px;background-color: #e3e3e5;
}
.main .share .share_box{width: 1320px;margin: auto;height: 100%;display: flex;align-items: center;justify-content: space-between;font-size: 22px;font-weight: bold;
}
.main .share .share_box .left{display: flex;align-items: center;justify-content: space-between;
}
.main .share .share_box .right{position: relative;width: 340px;height: 40px;border: 1px solid   #0058a6;background-color: #fff;
}
.main .share .share_box .right span{position: absolute;top: 0;right: 0;display: block;width: 80px;height: 40px;border-left: 1px solid #0058a6;
}
.main .share .share_box .right span::before{content: '';position: absolute;top: 50%;left: 50%;width: 28px;height: 23px;display: block;transform: translate(-50%,-50%);-webkit-transform: translate(-50%,-50%);-moz-transform: translate(-50%,-50%);-ms-transform: translate(-50%,-50%);-o-transform: translate(-50%,-50%);background: url("../image/search.jpg") no-repeat;background-size: 100% 100%;
}
.main .share .share_box .right input{width: 100%;height: 100%;border: none;background: none;padding: 10px;box-sizing: border-box;
}
.main .share .share_box img{width: 22px;height: 22px;margin-left: 10px;
}
.main .footer{width: 100%;height: 325px;background-color: #a7a7a7;
}
.main .footer .footer_box{width: 1320px;margin: auto;display: flex;padding-top: 50px;color: #fefefe;justify-content: space-between;
}
.main .footer .footer_box .item p:nth-of-type(1){color: #fefefe;font-size: 20px;font-weight: bold;margin-bottom: 30px; 
}
.main .footer .footer_box .item p{font-size: 16px;margin-bottom: 12px;
}
.main .footer_bottom{width: 100%;height: 67px;
}
.footer_bottom_box{color: #808080;font-size: 16px;width: 1320px;margin: auto;height: 100%;display: flex;justify-content: space-between;align-items: center;
}

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

第一、带着目标去学习,无论看书报课还是各种线下活动。
首先要明确自己的学习目标是什么,是想解决什么问题,实现怎样的目标。

第二、学习要建立个人知识体系
知识是学不完的,书籍是浩如烟海的。我们尽情徜徉其中的时候,千万不要被海水淹死,没有自我了。在学习过程中,我们会发现每一个知识点都是有她的边界和背景的,我们要善于归纳整理知识

第三、学到了就要用到

有时,我们一天下来感觉学到了很多干货,那么我们一定要将这些知识点和实际工作和生活联系起来。知识和实践相互联系靠拢。爱学习是一件好事,但只有会学习的人,才有价值。


七、🎁更多干货

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...