简体   繁体   English

Bootstrap 4下载的文件不起作用。 我想念什么吗?

[英]Bootstrap 4 downloaded files not working. Am I missing something?

I've created a site with Bootstrap 4. I downloaded all the files necessary for Bootstrap to work, and for some strange reason, it's not working. 我已经用Bootstrap 4创建了一个站点。我下载了Bootstrap正常工作所需的所有文件,由于某种奇怪的原因,它无法正常工作。 When I use the CDN version of Bootstrap, everything works just fine. 当我使用CDN版本的Bootstrap时,一切正常。 Am I missing something? 我想念什么吗? You can view the site here. 您可以在此处查看该站点

This is my file structure for JS 这是我的JS文件结构

这是我的JS文件的文件结构。

This is my file structure for the CSS files 这是我的CSS文件的文件结构 在此处输入图片说明

You seem to be including the Bootstrap CSS correctly using a relative path - css/bootstrap.min.css. 您似乎使用相对路径-css / bootstrap.min.css正确包含了Bootstrap CSS。

It appears you are using the CDN version of the Bootstrap JS and want to use the copy on your own server. 看来您正在使用Bootstrap JS的CDN版本,并想在自己的服务器上使用该副本。 You can include it in a similar way to that of the CSS above. 您可以按照与上述CSS类似的方式包含它。

ie

<script src="js/bootstrap.min.js"></script>

If you have any further questions, comment below and I will help further. 如果您还有其他问题,请在下面评论,我们将为您提供更多帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM