Bootstrap's javascript works locally but not when deployed to a server

前端 未结 9 1452
刺人心
刺人心 2020-12-15 18:56

I downloaded the barebone example of Twitter\'s bootstrap and customized it. I tested it locally (with WAMP server) and everything works perfectly, both the CSS and the JScr

相关标签:
9条回答
  • 2020-12-15 19:39

    Back to basics: If Debug is set to true on the local machine and false on the deployment environment as it should be, make sure your .min.js files are not overriding customizations you have made to the non-minified versions of .js files (applies to .css as well).

    You can also turn Debug off on the local machine and you should see the same issues.

    0 讨论(0)
  • 2020-12-15 19:46

    I had the same problem. In IE, the site was working on localhost but not when hosted on a different server. Adding the following meta tag fixed it.

    <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
    
    0 讨论(0)
  • 2020-12-15 19:47

    I was having simular issues before. The tabs function was working fine in my HTML site, but would not work when coded into a Wordpress theme. All of the source URLS were being generated dynamically with Wordpress's .

    The tabs finally began working when I added all JS links (except for Modernizr into the footer instead of the header.

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