导航条 side-bar

html

<div class="sidebar-menu">
        <ul class="main-menu ">
            <li class="active">
                <a href="/student/" target=""><i class="fa fa-home icon-setting"></i>li1</a>
            </li>
            <li class="second-menu" id="second-menu1">
                <a href="javascript:void(0)">
                    <i class="fa fa-info  icon-setting"></i>li2
                    <i class="fa fa-caret-down icon-more"></i>
                </a>
                <ul>
                    <li><a href="#" target=""><i class="fa icon-setting">-</i>li2-1</a></li>
                    <li><a href="/student/change-password/" target=""><i class="fa icon-setting">-</i>li2-</a></li>
                </ul>
            </li>

        </ul>
</div>

CSS

body {
    font-family: "Microsoft YaHei";
    color: black;
    min-width: 1000px;
}

.highlight {
    background: #8ECB8D;
}

.sidebar-menu {
    position: absolute;
    width: 256px;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: #66afe9;
}

.header {
    color: white;
    padding-top: 20px;
    height: 60px;

}

.logo {
    padding-left: 40px;
    float: left;
}

.sidebar-hide {
    padding-right: 40px;
    float: right;
}

.main-menu {
    padding: 0;
    margin-top: 20px;

}

.main-menu ul {
    padding-left: 0;
    list-style-type: none;
}

.main-menu li {
    text-align: center;
    padding: 0;
    margin: 0;
    line-height: 56px;
    list-style-type: none;
    position: relative;
    border-bottom: 1px solid #669ed8;
}

.second-menu ul {
    display: none;
}

.second-menu li {
    line-height: 56px;
    border-bottom: 1px solid #669ed8;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #669ed8;
}

li a, .header a {
    color: white;
    width: 256px;
}

li:hover {
    color: blue;
    cursor: pointer;
    text-decoration: none;
    /*font-weight: bold;*/
}

li a:hover i {
    color: blue;
    text-decoration: none;
}

.icon-setting {
    padding-right: 20px;
    text-align: center;
    width: 40px;
    color: white;
}

.icon-more {
    position: absolute;
    right: 10px;
    color: white;
    padding-top: 24px;
}

.main-content {
    margin-left: 286px;
    margin-right: 30px;
    margin-top: 0;
}

.main-show {
    /*width: 100%;*/
    min-height: 540px;
    padding-top: 20px;

}

.form-control {
    border-radius: 0;
}

.btn {
    border-radius: 0;
}

option {
}
.footer {
    position: fixed;
    text-align: center;
    left: 286px;
    right: 0;
    bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    color: gray;
}


效果图如下
这里写图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值