bootstrap 3 tabs not working properly

后端 未结 14 2638
情深已故
情深已故 2020-12-24 05:58

I almost copied the code from their website. The tab is initiated perfectly, and when I click on tabs, new panels are activated. However, the \"active\" class is not applied

相关标签:
14条回答
  • When I removed the smooth scroll script (https://github.com/cferdinandi/smooth-scroll), it worked.

    0 讨论(0)
  • 2020-12-24 06:48

    Make sure your jquery is inserted BEFORE bootstrap js file:

    <script src="jquery.min.js" type="text/javascript"></script>
    <link href="bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <script src="bootstrap.min.js" type="text/javascript"></script>
    
    0 讨论(0)
提交回复
热议问题