【网页期末作业】用HTML+CSS做一个漂亮简单的学校官网

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



一、👨‍🎓网站题目

🏫 校园网页设计 、学校班级网页制作、学校官网、小说书籍、等网站的设计与制作。


二、✍️网站描述

🏷️HTML静态网页设计作业使用dreamweaver制作,采用DIV+CSS布局,共有多个页面,首页使用CSS排版比较丰富,色彩鲜明有活力。顶部导航及底部区域背景色为100%宽度,主体内容区域宽度

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

  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结构代码



<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/index.css">
    <script src="js/js.js" type="text/javascript" ></script>
    <title>北京邮电大学世纪学院</title>
</head>
<style>
    .wai {
        position: relative;
    }
    
    .chuang {
        position: absolute;
        background-color: rgba(240, 248, 255, 0.259);
        width: 100px;
        top: 70px;
        display: none;
    }
</style>

<body>
    <div id="heard">
        <div class="heard_top">
            <a href="#">EN</a>
            <a href="#">中文</a>
            <a href="#">注册</a>
            <a href="#">登陆</a>
        </div>
        <div class="heard_bottom">
            <div class="logo">
                <img src="picture/logo.png" alt="">
            </div>
            <div class="title_list">

                <a href="#" id="dangqian">首页</a>
                <div class="wai">
                    <a href="#">快速通道</a>
                    <div class="chuang">
                        <a href="">党建工作</a>
                        <a href="">思政教育</a>
                        <a href="">科学教研</a>
                        <a href="">团学在线</a>
                        <a href="">招生就业</a>
                        <a href="">图书智能平台</a>
                    </div>
                </div>
                <div class="wai">
                    <a href="#">教务处</a>
                    <div class="chuang">
                        <a href="">重要文件</a>
                        <a href="">大事记</a>
                    </div>
                </div>
                <div class="wai">
                    <a href="#">校园写真</a>
                    <div class="chuang">
                        <a href="">图说世纪</a>
                        <a href="">音像世纪</a>
                    </div>
                </div>
                <div class="wai">
                    <a href="#">联系我们</a>
                    <div class="chuang">
                        <a href="">电话列表</a>
                        <a href="">学校方位图</a>
                        <a href="">校园地图</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 轮播图开始 -->
    <div id="boxhdp">
        <ul id="img">
            <li class="current">
                <img src="picture/11.jpg">
            </li>
            <li>
                <img src="picture/22.jpg"></li>
            <li>
                <img src="picture/33.jpg"></li>
        </ul>
        <ul id="li">
            <li class="on"></li>
            <li></li>
            <li></li>
        </ul>
        <div style="clear: both;"></div>
        <div class="an" id="an">
            <a href="javascript:;" id="prev">
                <img src="http://www.ylcp.shop/files/files/1650802251646/images/l.png" alt="">
            </a>
            <a href="javascript:;" id="next" class="an-a2">
                <img src="http://www.ylcp.shop/files/files/1650802251646/images/r.png" alt="">
            </a>
        </div>
    </div>
    <!-- 轮播图结束 -->
    <div class="biaoti">
        <p>学校简介</p>
        <img src="picture/shudian_xuexiao.png" alt="">
    </div>
    <div class="aboutwe">
        <div class="aboutwe_left">
            <img src="picture/school.jpg" alt="">
        </div>
        <div class="aboutwe_right">
            <p>北京邮电大学世纪学院</p>
            <p>明德励志笃学致用</p>
            <div class="clear">
                <div class="cleartop"></div>
                <div class="clearbottom"></div>
            </div>
            <p>京邮电大学世纪学院是经教育部批准成立的全日制本科普通高校。 2005年4月,教育部同意成立北京邮电大学世纪学院;2008年2月,被正式认可和批准加入雅思(IELTS)全球认可系统(GRS)</p>
            <div class="liaojie">了解更多</div>
        </div>
    </div>
    <div class="biaoti">
        <p>校园新闻</p>
        <img src="picture/xinwenzixun.png" alt="">
    </div>
    <div class="aboutwe">
        <div class="aboutwe_left_two">
            <img src="picture/stu.jpg" alt="">
        </div>
        <div class="aboutwe_right_two">
            <ul>
                <li>学院2021-2022学年图书馆图书采购项目中标公告
                </li>
                <li>疫情防控,监督检查进行时
                    <img src="picture/gengduo.png" alt="">
                </li>
                <li>学院2021-2022学年图书馆图书采购项目招标公告
                    <img src="picture/gengduo.png" alt="">
                </li>
                <li>关于2021年国庆节放假安排的通知
                    <img src="picture/gengduo.png" alt="">
                </li>
                <li>暑假安全提示
                    <img src="picture/gengduo.png" alt="">
                </li>
                <li>学院行知楼技防建设项目流标公告
                    <img src="picture/gengduo.png" alt="">
                </li>
                <li>学院学生公寓消防建设项目中标公告
                    <img src="picture/gengduo.png" alt="">
                </li>
            </ul>
        </div>
    </div>





    <div class="biaoti">
        <p id="mao">快速通道</p>
        <img src="picture/ly_kuaisutongdao.png" alt="">
    </div>
    <div class="aboutwe">
        <ul class="kuaisulist">
            <li>
                <img src="picture/dangjian-2.png" alt="">
                <p>党建工作</p>
            </li>
            <li>
                <img src="picture/dangjian_dangzhangdanggui.png" alt="">
                <p>思政教育</p>
            </li>
            <li>
                <img src="picture/w_jiaoxue.png" alt="">
                <p>科学科研</p>
            </li>
            <li>
                <img src="picture/tuanxuequantidahui.png" alt="">
                <p>团学在线</p>
            </li>
            <li>
                <img src="picture/zhaoshengkuaixun-2.png" alt="">
                <p>招生就业</p>
            </li>
            <li>
                <img src="picture/shudian_xuexiao.png" alt="">
                <p>图书智能平台</p>
            </li>
            <li>
                <img src="picture/xinwenzixun.png" alt="">
                <p>统一信息门户</p>
            </li>
            <li>
                <img src="picture/shenfenrenzheng.png" alt="">
                <p>统一身份认证</p>
            </li>
            <li>
                <img src="picture/zhaorencai.png" alt="">
                <p>人才引进</p>
            </li>
            <li>
                <img src="picture/zhaobiaobiangeng.png" alt="">
                <p>招标公告</p>
            </li>
        </ul>
    </div>
    <div class="movies">
        <img class="imgbottom" src="picture/wallhaven-6opwjq_2560x1080.png" alt="">
        <div class="movies_text">
            <p class="text1">明德、励志</p>
            <p class="text2">笃学、致用 </p>
            <div id="lijiguankan" class="liaojie">立即观看</div>
        </div>
    </div>
    <div id="footer" style="margin-top: 85px;">
        <div class="footerin">
            <div class="schoo">
                <ul style="position: relative;top: 75px;">
                    <li>北京邮电大学世纪学院
                        <div class="clearlists">
                            <div class="claone"></div>
                            <div class="clatwo"></div>
                        </div>
                    </li>
                    <li>联系地址:北京市延庆县康庄镇</li>
                    <li>邮政编码:102101</li>
                    <li></li>
                </ul>
            </div>
            <div class="footer_left">
                <div class="footer_left_one onelist">
                    <ul>
                        <li>快速链接
                            <div class="clearlists">
                            </div>
                        </li>
                        <li>国家示范高职院校建设</li>
                        <li>预决算公开</li>
                        <li>中华人民共和国教育部</li>
                        <li>中国高职高专教育网</li>

                    </ul>
                </div>
                <div class="footer_left_one">
                    <ul id="lianxiwomen">
                        <li>联系我们
                            <div class="clearlists">
                            </div>
                        </li>
                        <li>
                            <img src="picture/weixin.png" alt=""> 微信
                        </li>
                        <li>
                            <img src="picture/QQ.png" alt=""> QQ
                        </li>
                        <li>
                            <img src="picture/weibo.png" alt=""> 微博
                        </li>
                        <li>
                            <img src="picture/shouye.png" alt=""> 电话
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="gundong">
        <marquee id="laba" behavior="scroll" direction="">
            <p>更多信息请联系我们</p>
        </marquee>
    </div>
</body>
<script>
    var moni = document.getElementsByClassName('wai')
    var moni1 = document.getElementsByClassName('chuang')
    for (let i = 0; i < moni.length; i++) {
        moni[i].onmouseover = function() {
            console.log(123);
            moni1[i].style.display = 'block'
        }
        moni[i].onmouseout = function() {
            console.log(123);
            moni1[i].style.display = 'none'
        }
    }



    let a = document.getElementsByClassName('liaojie')[0];
    a.onmouseover = function() {
        let x = 0
        a.style.backgroundImage = "linear-gradient(to right, #413757 5% , #C6B9E9)"
        clearInterval(x)
        let time = 5
        x = setInterval(function() {
            time = time + 1.5
            if (time >= 100) {
                clearInterval(x)
            } else {
                a.style.backgroundImage = `linear-gradient(to right, #413757 ${time}% , #C6B9E9)`
            }
        }, 0.01)
    }
    a.onmouseout = function() {
        let y = 0
        clearInterval(y)
        let time = 100
        y = setInterval(function() {
            time = time - 1.5
            if (time <= 5) {
                clearInterval(y)
            } else {
                a.style.backgroundImage = `linear-gradient(to right, #413757 ${time}% , #C6B9E9)`
            }
        }, 0.01)
    }




    let xxx = document.getElementsByClassName('liaojie')[1];
    xxx.onmouseover = function() {
        let x = 0
        xxx.style.backgroundImage = "linear-gradient(to right, #413757 5% , #C6B9E9)"
        clearInterval(x)
        let time = 5
        x = setInterval(function() {
            time = time + 1.5
            if (time >= 100) {
                clearInterval(x)
            } else {
                xxx.style.backgroundImage = `linear-gradient(to right, #413757 ${time}% , #C6B9E9)`
            }
        }, 0.01)
    }
    xxx.onmouseout = function() {
        let y = 0
        clearInterval(y)
        let time = 100
        y = setInterval(function() {
            time = time - 1.5
            if (time <= 5) {
                clearInterval(y)
            } else {
                xxx.style.backgroundImage = `linear-gradient(to right, #413757 ${time}% , #C6B9E9)`
            }
        }, 0.01)
    }


    function watchWindowSize() {
        undefined
        var w = document.documentElement.clientWidth;
        var h = document.documentElement.clientHeight;
        if (w <= 1000) {
            document.getElementsByClassName('imgbottom')[0].style.height = "400px"
        } else {
            document.getElementsByClassName('imgbottom')[0].style.height = "auto"

        }
    }
    window.addEventListener("resize", watchWindowSize);
    watchWindowSize();
    hdp({
        li: "li", //默认值:li;默认用li包裹
        boxid: "boxhdp", //最外面div  id
        imgid: "img", //图片外面id
        optid: "li", //opt外面id	
        an: "an", //左右按钮id,用于移上显示和隐藏
        prev: "prev", //左边箭头id
        next: "next", //右边箭头id
        ms: 4000 //多少毫秒切换一张,
    })
</script>

</html>

💒CSS样式代码


.banner {
    width: 1000px;
    margin: 0 auto;
}

.banner img {
    width: 1000px;
    margin-top: 100px;
}

.aboutwe {
    position: relative;
    width: 1000px;
    margin: 0 auto;
    margin-top: 20px;
    display: flex;
}

.aboutwe_left {
    width: 400px;
    height: 400px;
    background-color: sandybrown;
    margin-left: 70px;
    overflow: hidden;
}

.aboutwe_left img {
    width: 400px;
}

.aboutwe_left img:hover {
    width: 420px;
    margin-left: -10px;
    margin-top: -10px;
}

.aboutwe_right {
    height: 400px;
    width: 400px;
    margin-left: 60px;
}

.aboutwe_right p:nth-child(1) {
    font-size: 20px;
    height: 30px;
    width: 200px;
    line-height: 30px;
    color: #999999;
    margin-top: 20px;
}

.aboutwe_right p:nth-child(2) {
    font-size: 50px;
    height: 100px;
    width: 400px;
    line-height: 100px;
    margin-top: 30px;
    background-image: -webkit-linear-gradient(bottom, rgb(255, 255, 255), #ae95e3, #413757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.clear {
    height: 4px;
    width: 100%;
    display: flex;
}

.cleartop {
    width: 100px;
    height: 4px;
    background-color: #413757;
}

.clearbottom {
    height: 1px;
    width: 300px;
    background-color: #C6B9E9;
    margin-top: 3px;
}

.aboutwe_right p:nth-child(4) {
    color: #999999;
    margin-top: 50px;
    font-size: 15px;
}

.liaojie {
    height: 50px;
    width: 200px;
    /* background: -webkit-linear-gradient(right,rgb(255, 255, 255),#ae95e3,#413757); */
    background-image: linear-gradient(to right, #413757 5%, #C6B9E9);
    line-height: 50px;
    text-align: center;
    color: #fff;
    margin-top: 30px;
}

.biaoti {
    position: relative;
    height: 100px;
    width: 1000px;
    margin: 0 auto;
    margin-top: 70px;
}

.biaoti p {
    text-align: center;
    font-size: 35px;
    color: #413757;
}

.biaoti img {
    display: block;
    height: 30px;
    width: 30px;
    margin: 0 auto;
    margin-top: 10px;
}

.aboutwe_left_two {
    width: 400px;
    height: 270px;
    background-color: sandybrown;
    margin-left: 70px;
    overflow: hidden;
}

.aboutwe_left_two img {
    width: 400px;
}

.aboutwe_left_two img:hover {
    width: 420px;
    margin-left: -10px;
    margin-top: -10px;
}

.aboutwe_right_two {
    height: 270px;
    width: 400px;
    margin-left: 60px;
}

.aboutwe_right_two ul li {
    height: 35px;
    width: 100%;
    list-style: none;
}

.aboutwe_right_two ul li:nth-child(1) {
    height: 55px;
    width: 100%;
    line-height: 60px;
    list-style: none;
}

.aboutwe_right_two ul li:not(:first-child) {
    font-size: 14px;
    height: 35px;
    width: 100%;
    line-height: 35px;
    list-style: none;
    color: #626262;
    border-bottom: 1px solid #999999;
    position: relative;
}

.aboutwe_right_two ul li:not(:first-child) img {
    height: 17px;
    top: 9px;
    position: absolute;
    right: 0px;
}

.aboutwe_right_two ul li:not(:first-child):hover {
    background-color: #413757;
    color: #fff;
}

.kuaisulist {
    width: 1000px;
    display: flex;
    list-style: none;
}

.kuaisulist li {
    width: 100px;
    height: 100px;
    /* background-color: aqua; */
    text-align: center;
    line-height: 30px;
    font-size: 13px;
}

.kuaisulist li:hover {
    background-color: #C6B9E9;
    color: #fff;
}

.kuaisulist li img {
    width: 60px;
}

.movies {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.imgbottom {
    width: 100%;
    position: absolute;
    z-index: -99999;
    top: 0px;
    left: 0px;
}

.movies_text {
    position: relative;
    width: 900px;
    height: 370px;
    margin: 0 auto;
    padding-top: 30px;
    padding-left: 50px;
    padding-right: 50px;
}

.text1 {
    height: 60px;
    width: 200px;
    font-size: 40px;
    line-height: 60px;
    color: #fff;
    border-left: 5px solid #fff;
    padding-left: 20px;
}

.text2 {
    height: 60px;
    width: 200px;
    font-size: 40px;
    line-height: 60px;
    color: #fff;
    border-left: 5px solid #fff;
    padding-left: 20px;
    margin-left: 100px;
}

#lijiguankan {
    position: absolute;
    bottom: 60px;
    right: 50px;
}



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

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

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

第三、学到了就要用到

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


七、🎁更多干货

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

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

3.

以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻💬

在这里插入图片描述

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

web学生网页设计

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值