js实现吸顶效果
话不多说,请看代码:<!DOCTYPEhtml><html><head><metacharset="utf-8"/><metaname="view
实现思路如下:1.div初始居普通文档流中2.给window添加scroll事件(可事件节流),获取div的of