zoukankan      html  css  js  c++  java
  • flex模式下的导航条示例

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <!-- <link rel="stylesheet" href="./less/less002.css"> -->
        <style>
            * {
      margin: 0px;
      padding: 0px;
      list-style: none;
    }
    nav {
      background-color: #E8E7E3;
      line-height: 40px;
      height: 40px ;
       800px;
      margin: 10px auto;
      display: flex;
    }
    nav li {
      flex-grow: 1;
    }
    nav a {
      display: block;
      text-decoration: none;
      color: #808080;
      text-align: center;
    }
    nav a:hover {
      background-color: dimgray;
      color: white;
    }
        </style>
    </head>
    <body>
        <nav>
            <li><a href="#">HTML/CSS</a></li>
            <li><a href="#">Browser Side</a></li>
            <li><a href="#">Server Side</a></li>
            <li><a href="#">Programming</a></li>
            <li><a href="#">XML</a></li>
            <li><a href="#">Web Building</a></li>
            <!-- <li><a href="#">Reference</a></li> -->
        </nav>
    </body>
    </html>
  • 相关阅读:
    [HDU 4828] Grids
    约瑟夫问题合集
    [POJ 1365] Prime Land
    [POJ 3270] Cow Sorting
    [POJ 1674] Sorting by Swapping
    SGU 188.Factory guard
    POJ 2942.Knights of the Round Table (双连通)
    POJ 1236.Network of Schools (强连通)
    POJ 2186.Popular Cows (强连通)
    POJ 1734.Sightseeing trip (Floyd 最小环)
  • 原文地址:https://www.cnblogs.com/kukai/p/12336103.html
Copyright © 2011-2022 走看看