HTML CSS 练习

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
            
        }
        .da{
            width: 600px;
            height: 435px;
            background-color: #ffffcc;
            position: relative;
            top: 50px;
            left: 100px;
            border: 1px solid black;
            border-radius: 10px;
            text-align:  center;
            padding-top: 7px;
            /* line-height:100%; */
        }
        .header{
            height: 90px;
            margin: 18px 15px;
            /* padding: 20px 15px ; */
            background-color: #99ccff;
            border: 1px solid black;
            border-radius: 15px;
            
                
        }
        .nav{
            height: 30px;
            background-color: #0066cc;
            margin: 5px;
            border: 1px solid black;
            border-radius: 5px;
            margin-top: 20px;
        }
        .aside{
            width: 20%;
            height: 200px;
            background-color: #cc0000;
            margin-left: 15px ;
            border-radius: 5px;
            border: 3px solid black;
            float: left;
        }
        .article{
            background-color: #ff66ff;
            height: 200px;
            width: 70%;
            border: 3px solid black;
            margin: 0 15px;
            float: left;
            border-radius: 10px;
        }
        .section{
            height: 50px    ;
            margin: 15px 15px;
            border: 3px solid black;
            border-radius: 5px;
            background-color: #ff0080;
            /* padding: 20px; */
        }
        .footer{
            height: 55px;
            width: 95%;
            margin: 15px 15px;
            border: 3px solid black;
            background-color: #009900;
            border-radius: 5px;
            
        }
        .a1::after{
            content: '';
            display: block;
            clear: both;
        }
    </style>
</head>
<body>
    
 
<div class="da">&lt;Body&gt;
    <header class="header">&lt;header&gt;
        <nav class="nav">&lt;nav&gt;<nav>
    </header>
    <article class="a1">
        <aside class="aside">&lt;aside&gt;</aside>
        <article class="article">&lt;article&gt;
            <section class="section">&lt;section&gt;</section>
        </article>
    </article>
   
        <footer class="footer">&lt;footer&gt;</footer>
</div>
</body>
</html>
 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值