灯箱在本地工作,但不在线

时间:2017-03-19 16:39:39

标签: javascript jquery css lightbox lightbox2

我仍然认为自己是CSS和jQuery的初学者。我最近发现了灯箱,它非常适合我的任务。我对它的结果非常满意,但在上传到浪涌之后,它就停止了正常工作。相反,控制台给我这个错误

Failed to load resource: the server responded with a status of 404 (Not Found)
2lightbox.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
lightbox.min.css Failed to load resource: the server responded with a status of 404 (Not Found)

我原本以为这是我在html中包含css和js文件的顺序。在我的脑袋里,我有......

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel="stylesheet" href="node_modules/lightbox2/dist/css/lightbox.min.css">
<link rel="stylesheet" href="main.css">

位于我身体标签的底部

<script src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script src="node_modules/lightbox2/dist/js/lightbox.min.js" charset="utf-8"></script>
<script src="main.js" charset="utf-8"></script>

如果您想亲眼看到该网站:dres-wknd.project3.surge.sh /

感谢您的帮助!

0 个答案:

没有答案