📜  javascript代码示例中的粘性操作

📅  最后修改于: 2022-03-11 15:01:22.703000             🧑  作者: Mango

代码示例2
nav {
    position:sticky;
    top:0;
}

/*Top can be replaced with bottom, left, or right 
    depending on what you want :) */