jquery 右侧iframe后台导航菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:jquery 右侧iframe后台导航菜单效果代码

代码标签: 后台 导航 菜单 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>左侧导航栏</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        .page .nav-left {
            position: absolute;
            top: 0;
            height: 100%;
            width: 240px;
            background-color: #FFFFFF;
            box-shadow: 10px 0px 17px rgba(72, 72, 72, 0.1);
        }
        .page .nav-left .LogoName {
            text-align: center;
            line-height: 70px;
            font-size: 20px;
            font-weight: 700;
            color: #6d61ea;
            letter-spacing: 0.05em;
        }
        .page .nav-left .navDiv .navName {
            padding: 12px 20px !important;
            letter-spacing: 0.05em;
            font-size: 11px;
            color: #5a5454;
            font-weight: 700;
        }
        .page .nav-left .navDiv .nav-list ul .a_active {
            background-color: #e2e0fb;
        }
        .page .nav-left .navDiv .nav-list ul .a_active .active {
            color: #6d61ea !important;
            font-weight: 700;
        }
        .page .nav-left .navDiv .nav-list ul .nav-tab {
            list-style: none;
        }
        .page .nav-left .navDiv .nav-list ul .nav-tab .li-a {
            padding: 12px 15px 12px 25px !important;
            text-decoration: none;
            display: block;
            padding: 0.65rem 1.5rem;
            font-size: 14px;
            color: #5a5454;
        }
        .page .nav-left .navDiv .nav-list ul .nav-tab .li-a .bx {
            font-size: 17px;
            vertical-align: text-top;
            margin-right: 6px;
        }
        .page .nav-left .navDiv .nav-list ul .nav-tab .nav-box {
            height: 0;
            overflow: hidden;
        }
        .page .nav-left .navDiv .nav-list ul .nav-show .nav-box {
            height: auto !important;
            padding-bottom: 12px;
            transition: all 0.6s;
        }
        .page .nav-left .navDiv .nav-list ul .nav-show .nav-box a {
            padding: 5px 70px !important;
            text-decoration: none;
            display: block;
            padding: 0.65rem 1.5rem;
            font-size: 13px;
            color: #5a5454;
            transition: all 0.3s;
            margin-left: 0px;
        }
        .page .nav-left .navDiv .nav-list ul .nav-show .nav-box .active-li-a {
            color: #6d61ea !important;
            font-weight: 700;
        }
        .page .nav-left .navDiv .nav-list ul .nav-show .nav-box a:hover {
            margin-left: 6px;
        }
        .page .nav-left .navDiv .nav-list .li-a {
            transition: all 0.8s;
            margin-left: 0px;
        }
        .page .nav-left .navDiv .nav-list .li-a:hover {
            margin-left: 6px;
        }
        .page .nav-right {
            display: flex;
            flex-direction: column;
            padding-left: 240px;
        }
        .page .nav-top {
            flex: 1;
            height: 60px;
            width: 100%;
            padding: 20px;
            background-color: #FFFFFF;
            box-shadow: 10px 0px 17px rgba(72, 72, 72, 0.2);
        }
        .page .content-page {
            flex: 1;
            position: absolute;
            top: 60px;
            left: 240px;
            right: 0;
            bottom: 0;
        }
    </style>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.4.3.1.min.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
</head>
<body>
    <div class="page" id="app">
        <div class="nav-left">
            <div class="LogoName">
                ADMIN CENTER
            </div>
            <div class="navDiv">
                <div class="navName">
                    导航
                </div>
                <div class="nav-list">
                    <ul>
                        <li class="nav-tab a_active waves-effect">
                            <a href="//bfw.wiki" class="li-a active" target="iframe"><i class='fa fa-lg fa-home'></i> 主页
                                <span class="badge badge-pill badge-primary float-right">3</span>
                            </a>
                        </li>
                        <!-- <li class="nav-tab">
                                                								<a href="#" class="li-a"><i class='bx bx-home-smile'></i> 设备管理</a>
                                                							</li> -->
                        <li class="nav-tab nav-ul">
                            <a href="javascript:void[0]" class="li-a" target="iframe"><i class='fa fa-lg fa-plane'></i> 设备管理
                                <i class='bx bx-chevron-right' style="float: right;"></i></a>
                            <div class="nav-box">
                                <a href="//bfw.wiki" class="li-a-a" target="iframe">当前能耗</a>
                                <a href="//bfw.wiki" class="li-a-a" target="iframe">采集记录</a>
                                <a href="//bfw.wiki" class="li-a-a" target="iframe">设备详细</a>
                                <a href="//bfw.wiki" class="li-a-a" target="iframe">运行状态统.........完整代码请登录后点击上方下载按钮下载查看

网友评论0