发布网友
共1个回答
热心网友
https://github.com/pandoraui/pandora/blob/master/docs/demo/smartfloat.html
还好搜到这个,改起来效果会更明显一些。
你的意思是,页面往下滚到一定程度,漂浮框就不见了?
如果是这样,将这行
if (scrolls > top) {
改成
if (scrolls > top && scrolls<200) { //这个数,你自己试着调节体验下。