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>
    
  • 相关阅读:
    java8学习
    linux常用命令
    window操作系统分区
    java8特性
    mysql索引本质
    红黑树
    http请求传参问题解决
    老王说架构
    从URL到看到网页的过程
    RabbitMQ如何工作和RabbitMQ核心概念
  • 原文地址:https://www.cnblogs.com/bingziweb/p/13924612.html
Copyright © 2011-2022 走看看