CSS粘性佈局 position:sticky

        CSS 3的屬性粘性定位position:sticky,它是相對定位(position:relative)和固定定位(position:fixed)的混合。 使用它,我們不再用監聽scroll事件,即可實現導航欄滾動絕對定位的效果。 基本用法:            .box{width:100%;height:100%}          .sticky{position:sti
相關文章
相關標籤/搜索