layui实现自适应大气后台管理菜单仪表盘数据统计效果代码
代码语言:html
所属分类:响应式
代码描述:layui实现自适应大气后台管理菜单仪表盘数据统计效果代码
代码标签: layui 自适应 大气 后台 管理 菜单 仪表盘 数据 统计
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>登录页面</title> <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/js/layui/css/layui.css"> <style> *{ margin: 0px; padding: 0px; font-family: "microsoft yahei","Helvetica Neue", Helvetica, Arial, sans-serif; } a{ text-decoration: none; } html{ width: 100%; height: 100%; overflow-x:hidden; overflow-y:auto; } body{ width: 100%; min-height: 100%; } .login-bg{ background: #eeeeee 0 0 no-repeat; background-size: cover; overflow: hidden; } .form-wrap{background:#f8f8f8; margin-top:15px;} .login{ margin: 120px auto 0 auto; min-height: 420px; max-width: 420px; padding: 40px; background-color: #ffffff; margin-left: auto; margin-right: auto; border-radius: 4px; /* overflow-x: hidden; */ box-sizing: border-box; } .login a.logo{ display: block; height: 58px; width: 167px; margin: 0 auto 30px auto; background-size: 167px 42px; } .login .message { margin: 10px 0 0 0; padding: 18px 10px 18px 60px; background: #0dc316; position: relative; color: #fff; font-size: 16px; } .login #darkbannerwrap { /* background: url(../images/aiwrap.png); */ width: 18px; height: 10px; margin: 0 0 20px -58px; position: relative; } .login input[type=text], .login input[type=file], .login input[type=password], .login input[type=email], select { border: 1px solid #DCDEE0; vertical-align: middle; border-radius: 3px; height: 50px; padding: 0px 16px; font-size: 14px; color: #555555; outline:none; width:100%; box-sizing: border-box; } .login input[type=text]:focus, .login input[type=file]:focus, .login input[type=password]:focus, .login input[type=email]:focus, select:focus { border: 1px solid #27A9E3; } .login input[type=submit], .login input[type=button]{ display: inline-block; vertical-align: middle; padding: 12px 24px; margin: 0px; font-size: 18px; line-height: 24px; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; color: #ffffff; background-color: #189F92; border-radius: 3px; border: none; -webkit-appearance: none; outline:none; width:100%; } .login hr.hr15 { height: 15px; border: none; margin: 0px; padding: 0px; width: 100%; } .login hr.hr20 { height: 20px; border: none; margin: 0px; padding: 0px; width: 100%; } .x-body{ padding: 20px; } .x-nav{ padding: 0 20px; position: relative; z-index: 99; border-bottom: 1px solid #e5e5e5; line-height: 39px; height: 39px; overflow: hidden; } xblock{ display: block; margin-bottom: 10px; padding: 5px ; padding-left:6px; padding-right:15px; line-height: 22px; /* border-left: 5px solid #15c142; */ border-radius: 0 2px 2px 0; background-color: #f2f2f2; } .x-right{ float: right; } .x-so{ /*text-align: center;*/ /*background: #f2f2f2 url() 0 0 no-repeat;*/ margin-bottom: 20px; } .x-so input.layui-input{ width: 150px; } .x-so .layui-form-label{ display: inline-block; } .x-so input.layui-input,.x-so input.layui-btn{ display: inline-block; } .x-red{ color: red; } .x-a{ color: #099641; } .x-a:hover{ color: #077e37; } .x-sort{ height: 30px; } .x-show{ cursor: pointer; } .layui-form-switch{ margin-top: 0px; } .layui-input:focus, .layui-textarea:focus { border-color: #15c142!important; } .page{ margin-top: 20px; text-align: center; } .page a{ display: inline-block; background: #f5f5f5; color: #888; padding: 10px 13px; min-width: 15px; transition:background-color ease .5s; font-family:"microsoft yahei"; border-radius:3px; } .page span{ display: inline-block; padding: 10px 10px; min-width: 15px; } .page span.current{ display: inline-block; background: #15c142 0 0 no-repeat; color: #fff; padding: 10px 13px; min-width: 15px; border-radius:3px; } .page .pagination li{ display: inline-block; margin-right: 5px; text-align: center; } .page .pagination li.active span{ background: #15c142 0 0 no-repeat; color: #fff; } /*登录样式*/ /*头部*/ .container{ width: 100%; height: 55px; background-color:#111; border-bottom: 1px solid rgba(0, 0, 0, 0.8); } .container .logo a{ float: left; color: #fff; font-size: 18px; padding-left: 20px; line-height: 50px; width: 200px; transition:background-color ease .3s } .container .right{ background-color:rgba(0,0,0,0); float: right; transition:background-color ease .3s } .container .left_open{ height: 55px; float: left; } .container .left_open i{ display: block; background: rgba(255,255,255,0.1) 0 0 no-repeat; color: #fff; width: 32px; height: 32px; line-height: 32px; border-radius: 3px; text-align: center; margin-top: 10px; cursor: pointer; transition:background-color ease .3s } .container .left_open i:hover{ background: rgba(255,255,255,0.3) 0 0 no-repeat; } .container .left{ background-color:rgba(0,0,0,0); float: left; } .container .layui-nav-item{ line-height: 50px; } .container .layui-nav-more{ top: 25px; } .container .layui-nav-child{ top: 50px; } .container .layui-nav-child i{ margin-right: 10px; } .layui-nav .layui-nav-item a{ color: #ccc; cursor: pointer; } .layui-nav .layui-nav-item >a:hover{ color: #fff; cursor: pointer; } .layui-nav .layui-nav-child a{ color: #333; cursor: pointer; } .left-nav{ position: absolute; top: 51px; bottom: 0px; left: 0; z-index: 2; padding-top: 10px; background-color: #222324; width: 220px; max-width: 220px; overflow: hidden; border-right: 1px solid #131e26; /*width: 0px;*/ } .left-nav #nav > li{ line-height:30px; border-left:4px solid #222324; transition:background-color ease .3s } .left-nav #nav > li:hover { background:#181818; border-left:4px solid #42b8f1; } .left-nav #nav > li.open { border-left:4px solid #42b8f1; background:#181818; } .left-nav #nav li a:hover { color: white; } .left-nav #nav .current{ background:#41b8f0; } .left-nav #nav li a{ font-size: 14px; padding: 12px 15px 12px 20px; display: block; cursor: pointer; color:#8e8e8e; transition:background-color ease .3s; } .left-nav #nav li a cite{ font-size: 14px; } .left-nav #nav li .sub-menu{ display: none; } .left-nav #nav li .opened{ display: block; background:#454648; } .left-nav #nav li .opened:hover{ /*background: #fff url() 0 0 no-repeat;*/ } .left-nav #nav li .opened .current{ } .left-nav #nav li .sub-menu li{ background:#181818; transition:background-color ease .3s /*color: blue;*/ /*background: #fff url() 0 0 no-repeat;*/ } .left-nav #nav li .sub-menu li:hover{ background:#303235; /*color: blue;*/ /*background: #fff url() 0 0 no-repeat;*/ } .left-nav #nav li .sub-menu li a{ padding: 10px 15px 10px 30px; font-size: 14px; cursor: pointer; color:#8e8e8e; } .left-nav #nav li .sub-menu li .sub-menu li a{ padding-left: 45px; } /*点击当前菜单显示效果*/ .menu-current { background:#282b33!important; } .menu-current > a{ color:#fff!important; } .left-nav #nav li .sub-menu li a:hover{ color: #fff; } .left-nav #nav li .sub-menu li a i{ font-size: 12px; } .left-nav #nav li a i{ padding-right: 10px; padding-top:8px; line-height: 14px; } .left-nav #nav li .nav_right{ float: right; font-size: 16px; } .page a:hover{ color:#fff; background:#969696; } .x-slide_left { width: 17px; height: 61px; position: absolute; top: 200px; left: 221px; cursor: pointer; z-index: 3; } .page-content{ position: absolute; top: 51px; right: 0; bottom: 0px; left: 221px; overflow: hidden; z-index: 1; } .page-content-bg{ position: absolute; top: 46px; right: 0; bottom: 42px; left: 221px; background: rgba(0,0,0,0.5); 0 0 no-repeat; overflow: hidden; z-index: 100; display: none; } .page-content .tab{ height: 100%; width: 100%; background: #EFEEF0 0 0 no-repeat; margin: 0px; } .page-content .layui-tab-title{ /*padding-top: 5px;*/ height: 35px; background: #EFEEF0 0 0 no-repeat; position: relative; z-index: 100; } .page-content .layui-tab-title li.home i{ padding-right: 5px; } .page-content .layui-tab-title li.home .layui-tab-close{ display: none; } .page-content .layui-tab-title li{ line-height: 35px; } .page-content .layui-tab-title .layui-this:after{ height: 36px; } .page-content .layui-tab-title li .layui-tab-close{ border-radius: 50%; } .page-content .layui-tab-title .layui-this{ background: #fff 0 0 no-repeat; } .page-content .layui-tab-bar{ height:34px; line-height: 35px; } .page-content .layui-tab-content{ position: absolute; top: 36px; bottom: 0px; width: 100%; background: #fff 0 0 no-repeat; padding: 0px; overflow: hidden; } .page-content .layui-tab-content .layui-tab-item{ width: 100%; height: 100%; } .page-content .layui-tab-content .layui-tab-item iframe{ width: 100%; height: 100%; } .x-admin-carousel,.layui-carousel,.x-admin-carousel>[carousel-item]>* { background-color:#fff } .x-admin-backlog .x-admin-backlog-body { display:block; padding:10px 15px; background-color:#f8f8f8; color:#999; border-radius:2px; transition:all .3s; -webkit-transition:all .3s } .x-admin-backlog-body h3 { padding-bottom:10px; font-size:12px } .x-admin-backlog-body p cite { font-style:normal; font-size:30px; font-weight:300; color:#169f1d; } .x-admin-backlog-body:hover { background-color:#CFCFCF; color:#888 } .welcome-footer{padding: 30px 0; line-height: 30px; text-align: center; background-color: #eee; color: #666; font-weight: 300;} body .layui-layout-admin .footer-demo{height: auto; padding: 15px 0; line-height: 26px;} .welcome-footer a{padding: 0 5px;} table th, table td { word-break: break-all; } .footer{ position: fixed; bottom: 0px; width: 100%; background-color: #323436; text-align:center; font-size:12px; border-top: 1px solid rgba(0, 0, 0, 0.1); line-height: 41px; color: #666; /*padding-left: 10px;*/ } .footer .copyright{ margin-left: 10px; } @media screen and (max-width: 768px){ .fast-add{ display: none; } .layui-nav .to-index{ display: none; } .container .logo a{ width: 140px; } .container .left_open { /*float: right;*/ } .left-nav{ left: -221px; } .page-content{ left: 0px; } .page-content .layui-tab-content .layui-tab-item{ -webkit-overflow-scrolling: touch; overflow-y: scroll; } .x-so input.layui-input{ width: 100%; margin: 10px; } } </style> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/layui/layui.all.js"></script> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/echarts.js"></script> <style> cite { color: white !important; } .x-admin-backlog-body { position: relative; color: white !important; } .x-admin-backlog-body .fa { position: absolute; right: 20px; top: 30px; font-size: 40px; } .cor1 { background: #33cabb !important; } .cor2 { background: #f96868 !important; } .cor3 { background: #15c377 !important; } .cor4 { background: #926dde !important; } </style> </head> <body> <!-- 顶部开始 --> <div class="container"> <div class="logo"> <a href="#">后台管理</a> </div> <div class="left_open"> <i title="展开左侧栏" class="iconfont fa fa-align-justify"></i> </div> <ul class="layui-nav right" lay-filter=""> <li class="layui-nav-item"> <a href="javascript:;">bfw</a> <dl class="layui-nav-child"> <dd><a href="">退出</a></dd> </dl> </li> </ul> </div> <!-- 顶部结束 --> <!-- 中部开始 --> <!-- 左侧菜单开始 --> <div class="left-nav"> <div id="side-nav"> <ul id="nav"> <li> <a href="javascript:;"> <i class="iconfont fa fa-user "></i> <cite>会员管理</cite> <i class="iconfont fa nav_right fa-angle-right"></i> </a> <ul class="sub-menu"> <li> <a _href=""> <i class="iconfont fa fa-bandcamp"></i> <cite>会员管理</cite> </a> </li> <li> <a _href=""> <i class="iconfont fa fa-bandcamp"></i> <cite>会员管理</cite> </a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="iconfont fa fa-android"></i> <cite>设备管理</cite> <i class="iconfont fa nav_right fa-angle-right"></i> </a> <ul class="sub-menu"> <li> <a _href=""> <i class="iconfont fa fa-android"></i> <cite>设备管理</cite> </a> </li> <li> <a _href=""> <i class="iconfont fa fa-bandcamp"></i> <cite>会员管理</cite> </a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="iconfont fa fa-yen "></i> <cite>财务管理</cite> <i class="iconfont fa nav_ri.........完整代码请登录后点击上方下载按钮下载查看
网友评论0