1
qhxin 2016-05-09 09:43:01 +08:00
依赖 scroll 事件回调啊,有延迟的话,试试用定时器去刷新呢。
|
2
qhxin 2016-05-09 09:44:13 +08:00
至于对不齐,应该是盒模型没一致吧。边框宽度导致的。
|
3
maomaomao001 OP @qhxin 定时器刷新? 段时间没不停的刷新?
|
4
sinosure 2016-05-14 10:38:52 +08:00
很好,挺有用的
|
5
maomaomao001 OP 居然 css 已经有最好的方案了,sticky 定位
https://codesandbox.io/s/epic-tu-12rmy?fontsize=14&hidenavigation=1&theme=dark <iframe src="https://codesandbox.io/embed/epic-tu-12rmy?fontsize=14&hidenavigation=1&theme=dark" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" title="epic-tu-12rmy" allow="geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin" ></iframe> |