header.less 1.56 KB
.head {
    height: 44px;
    box-sizing: border-box;
    text-align: center;
}

.m-header {
    // position: absolute; 
    // position: fixed; //fixed header 到顶部
    z-index: 5;
    position: relative;
    background: rgba(255, 255, 255, .8);
    color: #333;
    box-shadow: inset 0 0 1px #ddd;
    .text {
        font-style: normal;
        color: #666;
    }
    
    .head {
        padding: 0 50px;
        box-sizing: border-box;
        // border-bottom: 1px solid #e2e2e2;
        h1 {
            display: inline-block;
            vertical-align: middle;
            line-height: 44px;
            font-weight: normal;
            font-size: 19px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }
    }
    
    .lt-bar, .rt-bar {
        //左右两端区域,用于放置 icon | text
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        min-width: 44px;
        line-height: 44px;
        height: 100%;
        text-align: center;
        // background: url(../img/icon_menu.png) center center no-repeat;
        cursor: pointer;
        z-index: 1;
    }
    .lt-bar {
        float: left;
        &.text{
            padding-left: 10px;
            text-align: left;
        }
    }
    .rt-bar {
        float: right;
        left: auto;
        right: 0;
        &.text{
            padding-right: 10px;
            text-align: right;
        }
    }
    .text {
        text-align: center;
        line-height: 44px;
        font-size: 15px;
        color: #4a90e2;
    }
}