静态网页作业

代码:

html 复制代码
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>南宁理工学院官网</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        ol{
            list-style: none;
            display: none;
            background-color: rgb(21, 27, 223);
            width: 179px;
            position: absolute;
            z-index: 9999;
        }
        ul>li{
            list-style: none;
            background-color: blue;
            width: 12.5%;
            text-align: center;
            margin: 0 auto;
            line-height: 80px;
        }
        .dropdown > li:hover >ol{
            display: block;
        }
        a{
            text-decoration: none;
            color: aliceblue;
        }
        .head{
            background-color: blue;
            display: flex;
            justify-content: space-between;
            width: 1500px;
            height: 100px;
        }
        .head>.left>img{
            width: 1000px;
            height: 100px;
            padding-left: 100px;
        }
        .right{
            margin: 20px auto;
        }
        .dropdown{
            width: 1500px;
            height: 80px;
            display: flex;
            justify-content: space-between;
        }
        .box{
            position: absolute;
            z-index: 1;
            margin:auto;
            display: flex;
            justify-content: space-between;
            width: 1500px;
            height: 615px;
        }
        .box-left{
            background-color: #800080;
            height: 100%;
            width: 400px;
        }
        .box-left>img{
            height: 100%;
            width: 400px;
        }
        .box-right{
            height: 100%;
            width: 1200px;
        }

        .box>.box-right>ul{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-content: space-between;
            width: 1100px;
            height: 615px;
        }
        .box>.box-right>ul>li{
            width: 250px;
            height: 300px;          
            background-color: #87ceeb;
        }
        .imgs>li>img{
            width: 250px;
            height: 300px;
        }
    </style>
</head>
<body>
    <header class="head">
        <div class="left">
            <img src="../第四天/img/质量管理与评估中心20250828.png">
        </div>
        <div class="right">
            <form>
                <input type="text" class="s">
                <input type="image" title="全局搜索" class="p" src="../第四天/img/搜索.jpg">
            </form>
        </div>
    </header>
    <div class="center">
        <ul class="dropdown">
        <li>
            <a href="#">网站首页</a>
        </li>
        <li>
            <a href="#">机构设置</a>
            <ol>
                <li><a href="#">部门职责</a></li>
            </ol>
        </li>
        <li>
            <a href="#">质量监控</a>
            <ol>
                <li><a href="#">教学检查</a></li>
                <li><a href="#">教学督导</a></li>
                <li><a href="#">学生评教</a></li>
            </ol>
        </li>
        <li>
            <a href="#">教学评估</a>
            <ol>
                <li><a href="#">评估动态</a></li>
            </ol>
        </li>
        <li>
            <a href="#">文件制度</a>
            <ol>
            </ol>
        </li>
        <li>
            <a href="#">下载中心</a>
            <ol>
            </ol>
        </li>
        <li>
            <a href="#">学校首页</a>
            <ol>
            </ol>
        </li>
        <li>
            <a href="#">首页</a>
            <ol>
            </ol>
        </li>
    </div>
    <div class="box">
        <div class="box-left">
            <img src="../第二天/img/2.jpg" >
        </div>
        <div class="box-right">
            <ul class="imgs">
                <li><img src="../第二天/img/1.jpg"></li>
                <li><img src="../第二天/img/2.jpg"></li>
                <li><img src="../第二天/img/3.jpg"></li>
                <li><img src="../第二天/img/4.jpg"></li>
                <li><img src="../第二天/img/5.jpg"></li>
                <li><img src="../第二天/img/6.jpg"></li>
                <li><img src="../第二天/img/7.jpg"></li>
                <li><img src="../第二天/img/8.jpg"></li>
            </ul>
        </div>
    </div>
</body>
</html>

效果图:

相关推荐
ZC跨境爬虫2 小时前
跟着 MDN 学 HTML day_9:(信件语义标记)
前端·css·笔记·ui·html
前端老石人2 小时前
HTML 字符引用完全指南
开发语言·前端·html
幼儿园技术家2 小时前
前端如何设计权限系统(RBAC / ABAC)?
前端
摇滚侠4 小时前
外边距问题 塌陷问题 HTML CSS
css
前端摸鱼匠4 小时前
Vue 3 的v-bind合并行为:讲解v-bind与普通属性合并的规则
前端·javascript·vue.js·前端框架·ecmascript
REDcker4 小时前
浏览器端Web程序性能分析与优化实战 DevTools指标与工程清单
开发语言·前端·javascript·vue·ecmascript·php·js
W.A委员会5 小时前
CSS中的单位
css·css3·html5
donecoding6 小时前
一个 sudo 引发的血案:npm 全局包权限错乱彻底修复
前端·node.js·前端工程化
风骏时光牛马6 小时前
Raku正则匹配与数据批量处理实操案例
前端
nbwenren6 小时前
2026实测:Gemini 3 镜像站视觉能力实践——拍照原型图,一键生成 HTML+CSS 代码
前端·css·html