jquery - Fullpage.js 自动高度修复幻灯片在屏幕中央

标签 jquery html css fullpage.js

我将 fullpage.js 与 fp-auto-height 结合使用,以确保幻灯片不是屏幕的全高,但向下滚动时它不会对齐到顶部。

我创建了一个 js fiddle :https://jsfiddle.net/jw7enf9t/4/

滚动的时候可以看到gap在上面,我想要gap在bottom,这样可以吗?我没有看到执行此操作的任何选项吗?

任何帮助将不胜感激,祝一切顺利,马特

最佳答案

There's an open issue about it在 fullpage.js 问题论坛中。

尚未实现任何解决方案。 fullpage.js 的默认行为如下:

fullPage.js will animate to the top if you come from a section above the destination one. It will animate to the bottom if you come from a section below the destination one.

为什么?因为该功能最初虽然是用于页脚,但在该特定场景中,这种行为是预期的。

关于jquery - Fullpage.js 自动高度修复幻灯片在屏幕中央,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37809460/

相关文章:

javascript - jQuery:在方法上取消绑定(bind) jQuery 2.0

javascript - jqGrid:在内联编辑中提交之前确认对话框?

javascript - 如何将 pdf 嵌入到 android 浏览器的 html 页面中

html - 如何在iOS Safari 中更改滚动条样式?

css - DIV 之间的 IE7 额外间距/填充

html - 将div放在右下角

jquery - 使用 jquery 检查下拉选项选择框的最后一个值

javascript - 调查问题需要根据家长回答显示和隐藏

javascript - 使用 javascript 将纯文本转换为 HTML

html - 在 FF 和 IE 中完全忽略负边距底部。这是一个错误吗?