xinchanghao / one-day-in-the-future

有朝一日,起飞...
2 stars 1 forks source link

position: sticky 实现吸顶效果 #18

Open pzli opened 4 years ago

pzli commented 4 years ago

博客 polyfill

xinchanghao commented 4 years ago

所以,sticky就是position:relative和position:fixed的结合体?? @pzli

xinchanghao commented 4 years ago

sticky 和 fixed 的区别:

一. fixed 固定定位:

二.粘性定位: