使用粘性布局实现tab滑动后置顶

一、使用positionsticky属性实现。bash

position: sticky;
    top: 0;
复制代码

转载于:https://juejin.im/post/5cc905f6f265da036902a596post