📜  滚动条上的粘性导航栏 - Javascript 代码示例

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

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

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