Twitter Bootstrap dropdown not working in any browser

后端 未结 4 1426
时光取名叫无心
时光取名叫无心 2021-01-19 16:11

I\'m trying to do a dropdown menu and it seems to work in Jsfiddle. It seems that the javascript and css files are correctly loaded: http://imgur.com/YYiJS4p

But it

4条回答
  •  余生分开走
    2021-01-19 16:52

    You need to load bootstrap.min.js or bootstrap.js before you load bootstrap-dropdown.js. Bootstrap dropdown is a js plugin with a dependancy on the Bootstrap framework.

    Your footer section would then look like this:

    © Company 2013

    You can customize your build of Bootstrap, then you don't have to separately include the bootstrap-dropdown.js—it will be loaded with Bootstrap.

    Bootstrap custom download: http://twitter.github.com/bootstrap/customize.html

提交回复
热议问题