我从基金会使用topbar阅读了许多内容 . 喜欢
A sticky Top Bar makes the page jump up when scrolling past it with Zurb Foundation
和这里
https://github.com/zurb/foundation/issues/2005
这对我来说非常“脆弱” . 有时工作,有时不工作
这是我的代码http://jsfiddle.net/qhoc/48Tur/1/
我这个激活了吗?
$(document).foundation().foundation('topbar');
任何线索为什么这个不坚持?
2 回答
Here is a working fiddle . 你错过了一些
css
将此添加到您的CSS