0
点赞
收藏
分享

微信扫一扫

4-12作业

天涯学馆 2022-04-14 阅读 70
css
<!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">
    <title>Document</title>
    <style>
        #one{
            width: 100%;
            height: 800px;
            border: 1px blue solid;
        }
        #top{
            height: 20%;
            margin-top: 10px;
            margin-left: 20px;
            margin-right: 20px;
            /* border: 1px black solid; */
            background-color: blueviolet;
        }
        #moddle{
            height: 60%;
            margin-top: 10px;
            margin-left: 20px;
            margin-right: 20px;
            border: 1px black solid;
            background-color: rgb(41, 179, 243);
            position: relative;
        }
        #end{
            height: 13%;
            margin-top: 20px;
            margin-left: 20px;
            margin-right: 20px;
            /* border: 1px black solid; */
            background-color: rgb(66, 238, 13);
        }
        #moddlel{
            width:30%;
            height: 100%;
            
        }
        #d1{
            width:90%;
            height: 130px;
            margin-top: 20px;
            margin-left: 20px;
            border: 1px black solid;
            background-color: rgb(66, 238, 13);
        }
        #d2{
            width:90%;
            height: 130px;
            margin-top: 20px;
            margin-left: 20px;
            border: 1px black solid;
            background-color: rgb(66, 238, 13);
        }
        #d3{
            width:90%;
            height: 130px;
            margin-top: 20px;
            margin-left: 20px;
            border: 1px black solid;
            background-color: rgb(66, 238, 13);
        }
        #moddler{
            width:65%;
            height: 440px;
            margin-top: 20px;
            margin-right: 20px;
            border: 1px black solid;
            background-color: rgb(66, 238, 13);
            float: right;
            position: relative;
            top:-500px;
        }
        a{
            position: fixed;
            left: 90%;
            top:90%;
        }
    </style>
</head>
<body>
    <div id="one">
        <div id="top"><h1 id="top"></h1></div>
        <div id="moddle">
            <div id="moddlel">
                <div id="d1"></div>
                <div id="d2"></div>
                <div id="d3"></div>
            </div>
            <div id="moddler"></div>  
        </div>
        <div id="end">
            <a href="#top">回到顶部</a>
        </div>
    </div>
</body>
</html>

 

举报

相关推荐

实验4:4-12

4-12 Day12. 58 - I. 翻转单词顺序

4月12日作业

2022-4-12作业

Day12作业

第12次java作业

QT作业4

12月7日作业

12月25日作业

0 条评论