为什么js和css文件在服务器端导入时无效

Why js and css file is invalid when they are imported on the server

本文关键字:服务器端 导入 无效 文件 js css 为什么      更新时间:2023-09-26

我有一个网站,在头部标签上导入一些js和css文件,但是当我通过chrome打开网站时,整个页面布局完全错误,看起来像js和css文件无效。谁能帮我?谢谢。

顺便说一下,JS控制台没有任何错误消息。所有的js、css和图像文件都已加载到network选项卡中。
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="http://xmumap-code.stor.sinaapp.com/js/jquery-1.11.2.min.js"></script>
<script src="http://xmumap-code.stor.sinaapp.com/js/jquery.mobile-1.4.5.min.js"></script>
<script src="http://xmumap-code.stor.sinaapp.com/js/swiper.jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://xmumap-code.stor.sinaapp.com/css/jquery.mobile-1.4.5.min.css">
<link rel="stylesheet" type="text/css" href="http://xmumap-code.stor.sinaapp.com/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="http://xmumap-code.stor.sinaapp.com/css/swiper.min.css">
</head>

尝试在所有CSS文件加载之前包括你的bootstrap.min.css文件