bootstrap实现左侧iframe多级下拉菜单后台框架效果代码
代码语言:html
所属分类:布局界面
代码描述:bootstrap实现左侧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/boxicons.css"> </head> <body> <div class="page" id="app"> <div class="nav-left"> <div class="LogoName"> Admin </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='bx bx-home-smile'></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='bx bx-layer'></i> 设备管理 <i class='bx bx-chevron-right' style="float: right;"></i></a> <div class="nav-box"> <a href="html/device/device.html" class="li-a-a" target="iframe">当前能耗</a> <a href="html/device/device.html" class="li-a-a" target="iframe">采集记录</a> <a href="html/device/device.html" class="li-a-a" target="iframe">设备详细</a> <a href="html/device/device.html" class="li-a-a" target="iframe">运行状态统计</a> </div> </li> <li class="nav-tab nav-ul"> <a href="javascript:void[0]" class="li-a"><i class='bx bx-cog'></i> 维修保养 <i class='bx bx-chevron-right' style="float: right;&.........完整代码请登录后点击上方下载按钮下载查看
网友评论0