zoukankan      html  css  js  c++  java
  • 弹出菜单

    点击后旋转弹出菜单

     <button id="exportWord" type="submit" class="btn btn-sm btn-primary " onclick="document.getElementsByTagName('nav')[0].className = 'menu menu_active'">导出word</button>
    
                            <nav class="menu panel panel-default">
                                <p onclick="document.getElementsByTagName('nav')[0].className = 'menu'">关闭</p>
                                <ol>
                                    <li class="menu-item listing"><a href="#0" data-text="listing">一人有限公司</a>
                                        <ol class=sub-menu">
                                            <li class="menu_item listing_process"><a data-text="process">公司挂牌申请流程</a></li>
                                            <li class="menu_item one_listing"><a href="#0" data-text="one">一人有限公司挂牌</a></li>
                                            <li class="menu_item many_listing"><a href="#0" data-text="multi">多人有限公司挂牌</a></li>
                                        </ol>
                                    </li>
                                </ol>
                                <ol>
                                    <li class="menu-item"><a href="#0">多人有限公司</a>
                                        <ol class=sub-menu">
                                            <li class="menu_item"><a href="#0">公司挂牌申请流程</a></li>
                                            <li class="menu_item"><a href="#0">多人有限公司挂牌</a></li>
                                        </ol>
                                    </li>
                                </ol>
                            </nav>
                        </div>

    css

     nav a {
            color: inherit;
            text-decoration: none;
        }
    
        nav {
            line-height: 1.4;
            font-family: "Space Mono", monospace;
            background: rgba(236, 236, 236, 0.12);
            padding: 25px 35px;
            width: 350px;
            top: calc(40vh);
            left: calc(25vw);
            position: fixed;
            border-radius: 16px;
            box-shadow: 0 0 60px -15px black;
            transform: scale(0) rotate(360deg);
            transition: all 0.75s;
            font-size: 18px;
          /*  opacity:0.9;
            filter:alpha(opacity=90);*/
        }
    
        nav.menu_active {
            transform: scale(1) rotate(0deg);
        }
        nav > ol > li {
            margin: 20px 0;
            color: #ff6c18;
        }
    
        nav > ol > li:first-of-type {
            color: #ff6c18;
        }
    
        nav > ol > li > ol {
            margin: 10px 0 0 20px;
            border-left: 1px solid #4d4d4c;
            color: #4d3c7d;
        }
    
        nav > ol > li > ol > li {
            margin: 7px 0;
            padding-left: 20px;
        }
    
        nav a:hover {
            color: #dd925f;
        }
    
    
    
        nav p {
            font-family: "Roboto Mono", monospace;
            float: right;
            cursor: pointer;
            font-size: 16px;
            color: #1642dc;
            transition: all 0.2s;
        }
    
        nav p:hover {
            border-bottom: 2px dotted #cfd8dc;
            padding-bottom: 5px;
        }
  • 相关阅读:
    Linux终端以及bash
    初识VIM
    基础命令
    目录结构和命令
    Xshell连接Centos7.5和yum
    Linux的发展史和centos7的安装
    学习方法以及计算机硬件基础
    mysql、MariaDB的简单操作
    yum 软件管理器
    基础面试题
  • 原文地址:https://www.cnblogs.com/jiangfeilong/p/11381482.html
Copyright © 2011-2022 走看看