4月13日

这是一个关于网页布局和颜色设计的示例。页面分为三个部分:顶部导航栏、主要内容区域和底部。主要内容区域包含左侧和右侧两个部分,各自有不同的背景颜色和边框样式。页面还设置了返回顶部的链接,方便用户浏览。

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值