Bootstrap drop-down menus and tabbable tabs on Docpad

前端 未结 1 1700
执笔经年
执笔经年 2021-01-26 16:25

I\'ve created a Docpad site using the Twitter Bootstrap skeleton. I cannot get either Bootstrap\'s tabbable tabs or drop-down menus to work. They render, but do not function. Fr

相关标签:
1条回答
  • 2021-01-26 17:05

    for Boostrap, to run drop-down menu i know its need this code in a page to work:

     $('.dropdown-toggle').dropdown();
    

    this call a bootstrap plugin.

    the sequence call for js files is:

    1. <script src="jquery.js"></script>
    2. <script src="bootstrap.js"></script>
    3. <script type="text/javascript"> $(document).ready(function () { $('.dropdown-toggle').dropdown(); }); </script>

    Its important to call jquery and bootstrap js before others js codes

    For tabs i dont know because i didnt use until now.

    0 讨论(0)
提交回复
热议问题