zoukankan      html  css  js  c++  java
  • 侧栏多级菜单

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Insert title here</title>

    <style type="text/css">
    * {
    margin: 0;
    padding: 0;
    }

    li {
    list-style: none;
    }

    .left-nav {
    100px;
    background-color: #3385FF;
    color: white;
    font-size: 13px;
    padding:1px;
    }

    .left-nav>ul>li {
    100px;
    line-height: 20px;
    text-align: center;
    position: relative;
    }

    .left-nav>ul>li:HOVER {
    background-color: navy;
    cursor: pointer;
    }

    .left-nav>ul>li:HOVER>ul,.left-nav>ul>li:HOVER>h4>div {
    display: block;
    }

    .left-nav>ul>li>ul {
    display: none;
    position: absolute;
    top: 0px;
    left: 101px;
    color: black;
    100px;
    background-color: #EAEAEA;
    padding: 2px;
    }

    .arrow-right {
    0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid yellow;
    float: left;
    display: none;
    }
    </style>
    </head>
    <body>
    <div class="left-nav">
    <ul>
    <li>
    <h4><div class="arrow-right"></div>节点列表</h4>
    <ul>
    <li>node-102</li>
    <li>node-103</li>
    <li>node-104</li>
    </ul>
    </li>
    <li>
    <h4><div class="arrow-right"></div>报警记录</h4>
    <ul>
    <li>存活报警</li>
    <li>指标报警</li>
    </ul>
    </li>
    <li>
    <h4><div class="arrow-right"></div>权限管理</h4>
    <ul>
    <li>超级权限</li>
    <li>功能权限</li>
    <li>数据权限</li>
    </ul>
    </li>
    <li>
    <h4><div class="arrow-right"></div>权限管理</h4>
    <ul>
    <li>超级权限</li>
    <li>功能权限</li>
    <li>数据权限</li>
    </ul>
    </li>
    </ul>
    </div>

    </body>
    </html>

    ==============================

    <!DOCTYPE html>
    <html>
    <head>
      <title>Foundation ʵ��</title>
      <meta charset="utf-8">
      
      <style type="text/css">
      
          .main {
              padding: 10px;
              margin: 10px;
              height: 400px;
              background-color: gray;
          }
          
          .main p {
              width: 200px;
              background-color: blue;
              line-height: 40px;
              padding-left: 50px;
              cursor: pointer;
              padding-top: -20px;
              position: relative;
              color: white;
          }
          .main p:after {
              content: '';
              display: block;
              top: 0px;
              left: 250px;
              position: absolute;
              width: 0;
            height: 0;
            border-top: 20px solid transparent;
            border-left:40px solid #3388FF;
            border-bottom: 20px solid transparent;
          }
          
          .main p:before {
              content: '';
              display: block;
              top: 0px;
              left: 0px;
              position: absolute;
              width: 0;
            height: 0;
            border-top: 20px solid transparent;
            border-left:40px solid #3388FF;
            border-bottom: 20px solid transparent;
          }
      </style>
    </head>
    
    <body style="padding:20px;">
    
        <div class="main">
            <p></p>
            <p></p>
            <p></p>
        </div>
        
        <p class="arroe">11111</p>
    
    </body>
    </html>

      

  • 相关阅读:
    sass 基本语法
    ruby gem的安装步骤
    sass 安装与各种命令
    《转》阿里负责人揭秘面试潜规则
    Json数组基础知识
    Json序列化与反序列化
    《转》请放下你的无效社交
    Perfmon
    C# 连接SQL Server数据库的几种方式--server+data source等方式
    C#三种字符串拼接方法的效率对比
  • 原文地址:https://www.cnblogs.com/gstsyyb/p/5614524.html
Copyright © 2011-2022 走看看