简体   繁体   中英

Foundation (3) Zurb Drop Down Menu Issue

I have setup a basic "demo" page and am having trouble to get the Foundation Drop Down Menu to Function. As you can see here, http://tinyurl.com/arhssm9 , Nav Item 2 has a dropdown option. However, nothing happens. I believe I have implemented the nav correctly and included the correct js files. I would really appreciate for someone to tell me where I went wrong so I can keep on going with my project.

Thanks!

You are missing the app.js . Just add it.

You can test running in your console:

$.getScript('https://raw.github.com/zurb/foundation/master/vendor/assets/javascripts/foundation/app.js');

Hope it helps.


EDIT

If you don't want to download extra JS, you can simply add something like:

var $doc = $(document);
$doc.ready(function(){
  $doc.foundationTopBar();
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM