Twitter Bootstrap Js (tabs, popups, dropdown) not working in Drupal

旧巷老猫 提交于 2019-12-12 04:55:26

问题


Firstly I design the site & convert it into HTML using Twitter bootstrap. The static model of my site is working absolutely fine all tabs popup etc working just fine. But when I give the HTML to developer’s for implementing dynamic code & template creating all things stop working only UI is there but no tabs, popup, dropdown is working I check the JS paths they all are fine. developer even plugged in the jQuery simple tabs they are working fine but twitter bootstrap JS is not working any idea why? Please HELP else I have to design all those things again in jQuery & customize it as per the twitter bootstrap UI :’(


回答1:


I think the order of script is causing the issue: It should be:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
        <script src="http://twitter.github.com/bootstrap/1.4.0/bootstrap-dropdown.js"></script>
        <link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css">

First

jquery.js

and then

Bootstrap.dropdown.js



来源:https://stackoverflow.com/questions/8816505/twitter-bootstrap-js-tabs-popups-dropdown-not-working-in-drupal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!