Task 2: sidebar滚动和container区域滚动分

2018-06-07  本文已影响0人  kayleeWei

功能:

实现思路:

页面结构为: sidebar 采用了position: fixed; container是float: left

.sidebar {
    float: left;
    width: 222px;
    position: fixed;
    height: calc(~"100% - 82px");
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 1;

    &::-webkit-scrollbar {
        width: 0;
    }
}
.breadcrumb {
        position: fixed;
        top: 48px;
        z-index: 10;
        width: 100%;
        background-color: #f4f4f4;
    }
上一篇 下一篇

猜你喜欢

热点阅读