代码

.toc{
    position: fixed;
    z-index: 999999;
    right: 20px;
    top: 50px;
    min-width: 180px;
}