zoukankan      html  css  js  c++  java
  • Html5 语义化标签

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
    </head>
    <style>
        html {
            font-size: 30px;
            color: #ffffff;
            line-height: 1.5;
            font-family: Arial, Helvetica;
            background: #F2F2F2;
        }
        
        body {
            margin: 0 auto;
            padding: 0;
            max- 1200px;
            min- 360px;
             1200px;
        }
        
        header,
        nav,
        footer {
            height: 80px;
             auto;
            margin-bottom: 20px;
            text-align: center;
            line-height: 80px;
            background-color: yellowgreen;
        }
        
        section {
            display: flex;
            justify-content: space-between;
             100%;
        }
        
        section>article {
             500px;
            height: 500px;
            text-align: center;
            line-height: 500px;
            background-color: yellowgreen;
        }
        
        footer {
            margin-top: 20px;
        }
    </style>
    
    <body>
        <header>herder</header>
        <nav>nav</nav>
        <section>
            <article>article</article>
            <article>article</article>
        </section>
        <footer>footer</footer>
    </body>
    
    </html>
    
  • 相关阅读:
    JavaScript -- 条件语句和循环语句
    xpath的|
    Pythonic
    4k图片爬取+中文乱码
    xpath-房价爬取
    (.*?)实验室
    模块的循环导入
    bs4-爬取小说
    糗图-图片爬取
    re实战记录
  • 原文地址:https://www.cnblogs.com/bingziweb/p/13924612.html
Copyright © 2011-2022 走看看