HTML
CSS
JavaScript
HTML
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>首页 - 光年(Light Year Admin)后台管理系统模板</title>
<link rel="icon" href="favicon.ico" type="image/ico">
<meta name="keywords" content="LightYear,光年,后台模板,后台管理系统,光年HTML模板">
<meta name="description" content="LightYear是一个基于Bootstrap v3.3.7的后台管理系统的HTML模板。">
<meta name="author" content="yinqi">
<link href="http://lyear.itshubao.com/iframe/css/bootstrap.min.css" rel="stylesheet">
<link href="http://example.itshubao.com/demo/css/materialdesignicons.min.css" rel="stylesheet">
<link href="http://lyear.itshubao.com/iframe/js/bootstrap-multitabs/multitabs.min.css" rel="stylesheet">
<link href="http://lyear.itshubao.com/iframe/css/style.min.css" rel="stylesheet">
</head>
  
<body>
<div class="lyear-layout-web">
  <div class="lyear-layout-container">
    <!--左侧导航-->
    <aside class="lyear-layout-sidebar">
      
      <!-- logo -->
      <div id="logo" class="sidebar-header">
        <a href="index.html"><img src="http://lyear.itshubao.com/iframe/images/logo-sidebar.png" title="LightYear" alt="LightYear" /></a>
      </div>
      <div class="lyear-layout-sidebar-scroll"> 
        
        <nav class="sidebar-main">
        </nav>
        
        <div class="sidebar-footer">
          <p class="copyright">Copyright © 2019. <a target="_blank" href="http://lyear.itshubao.com">IT书包</a> All rights reserved.</p>
        </div>
      </div>
      
    </aside>
    <!--End 左侧导航-->
    
    <!--头部信息-->
    <header class="lyear-layout-header">
      
      <nav class="navbar navbar-default">
        <div class="topbar">
          
          <div class="topbar-left">
            <div class="lyear-aside-toggler">
              <span class="lyear-toggler-bar"></span>
              <span class="lyear-toggler-bar"></span>
              <span class="lyear-toggler-bar"></span>
            </div>
          </div>
          
          <ul class="topbar-right">
            <li class="dropdown dropdown-profile">
              <a href="javascript:void(0)" data-toggle="dropdown">
                <img class="img-avatar img-avatar-48 m-r-10" src="http://lyear.itshubao.com/iframe/images/users/avatar.jpg" alt="笔下光年" />
                <span>笔下光年 <span class="caret"></span></span>
              </a>
              <ul class="dropdown-menu dropdown-menu-right">
                <li> <a class="multitabs" data-url="lyear_pages_profile.html" href="javascript:void(0)"><i class="mdi mdi-account"></i> 个人信息</a> </li>
                <li> <a class="multitabs" data-url="lyear_pages_edit_pwd.html" href="javascript:void(0)"><i class="mdi mdi-lock-outline"></i> 修改密码</a> </li>
                <li> <a href="javascript:void(0)"><i class="mdi mdi-delete"></i> 清空缓存</a></li>
                <li class="divider"></li>
                <li> <a href="lyear_pages_login.html"><i class="mdi mdi-logout-variant"></i> 退出登录</a> </li>
              </ul>
            </li>
            <!--切换主题配色-->
		    <li class="dropdown dropdown-skin">
			  <span data-toggle="dropdown" class="icon-palette"><i class="mdi mdi-palette"></i></span>
			</li>
            <!--切换主题配色-->
            <!--消息-->
            <li class="dropdown notifications-menu">
              <span class="dropdown-toggle icon-notifications" data-toggle="dropdown">
                <i class="mdi mdi-bell"></i>
                <span class="label label-warning">10</span>
              </span>
              <ul class="dropdown-menu dropdown-menu-right">
                <li class="header">您有10个未读消息</li>
                <li>
                  <!-- inner menu: contains the actual data -->
                  <ul class="menu">
                    <li>
                      <a href="#">
                        <i class="mdi mdi-account text-primary"></i> 今天有5个新成员加入
                      </a>
                    </li>
                    <li>
                      <a href="#">
                        <i class="mdi mdi-weather-snowy text-yellow"></i> 今天将要下雪
                      </a>
                    </li>
                    <li>
                      <a href="#">
                        <i class="mdi mdi-shield text-danger"></i> 很长的描述可能不适合页面并可能导致设计问题
                      </a>
                    </li>
                    <li>
                      <a href="#">
                        <i class="mdi mdi-shopping text-success"></i> 25万销售额
                      </a>
                    </li>
                    <li>
                      <a href="#">
                        <i class="mdi mdi-flask-outline text-cyan"></i> 您更新了用户名
                      </a>
                    </li>
                  </ul>
                </li>
                <li class="text-center"><a href="#">全部</a></li>
              </ul>
            </li>
            <!--end 消息-->
          </ul>
          
        </div>
      </nav>
      
    </header>
    <!--End 头部信息-->
    
    <!--页面主要内容-->
    <main class="lyear-layout-content">
      
      <div id="iframe-content"></div>
      
    </main>
    <!--End 页面主要内容-->
  </div>
</div>
<script type="text/javascript" src="http://lyear.itshubao.com/iframe/js/jquery.min.js"></script>
<script type="text/javascript" src="http://lyear.itshubao.com/iframe/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://lyear.itshubao.com/iframe/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="http://lyear.itshubao.com/iframe/js/bootstrap-multitabs/multitabs.js"></script>
<!--script type="text/javascript" src="http://lyear.itshubao.com/iframe/js/index.min.js"></script-->
</body>
</html>
CSS
.icon-notifications {
    display: block;
    height: 68px;
    line-height: 68px;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 12px;
    text-align: center;
}
.icon-notifications  > .label {
    position: absolute;
    top: 9px;
    right: 7px;
    text-align: center;
    font-size: 9px;
    padding: 2px 3px;
    line-height: .9;
}
.notifications-menu > .dropdown-menu {
    border: none;
    width: 280px;
    padding-bottom: 0px;
}
.notifications-menu > .dropdown-menu > li.header {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f2f3;
}
.notifications-menu > .dropdown-menu > li .menu {
    max-height: 200px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: hidden;
}
.notifications-menu > .dropdown-menu > li .menu > li > a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #f1f2f3;
    color: #4d5259;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.notifications-menu > .dropdown-menu > li .menu > li > a:hover {
    background-color: #f9fafb;
}
@media screen and (max-width: 500px) {
    .notifications-menu > .dropdown-menu.dropdown-menu-right {
        right: -160px!important;
    }
}
JavaScript