如何解决由于引导本地和 CDN 链接,滑块看起来不太好
我在索引文件的项目中使用了一个滑块,但是当引导程序呈现它时它看起来不太好,我是编码新手,但我不知道该怎么做,当我在单个文件中编写代码并且只有 cdn 链接(没有离线库),比如 popper.min.js、jquery.min.js、bootstrap.min.css 和 bootstrap.min.js 这些文件 滑块显示但图像没有一个接一个出现,我的意思是只显示活动图像
<!-- link proper font here,like signica,offline font -->
<!-- <link rel="stylesheet" href="./bootstrap/css/bootstrap/signica-light.ttf">-->
<!-- <link rel="stylesheet" href="./bootstrap/css/bootstrap/signica-bold.ttf">-->
<!-- <link rel="stylesheet" href="./bootstrap/css/bootstrap/signica-regular.ttf">-->
<!-- <link rel="stylesheet" href="./bootstrap/css/bootstrap/signica-semibold.ttf">-->
<!-- -->
<link rel="stylesheet" href="./bootstrap/css/bootstrap/montserrat-regular.ttf">
<!-- this title variable is written before the page executed -->
<title><?PHP echo $title; ?></title>
<link rel="shortcut icon" type="image/jpg" href="./bootstrap/img/favicon.png"/>
<!-- enable these links when in production -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">-->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>-->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>-->
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>-->
<!---->
<link href="./bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- <link href="./bootstrap/js/popper.min.js" rel="stylesheet">-->
<!-- <link href="./bootstrap/js/jquery.min.js" rel="stylesheet">-->
<!-- <link href="./bootstrap/js/bootstrap.min.js" rel="stylesheet">-->
<link href="./bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="./bootstrap/css/jumbotron.css" rel="stylesheet">
<link href="./bootstrap/css/style.css" rel="stylesheet">
<head>
<style>
.carousel-inner > .item > img,.carousel-inner > .item > a > img {
width: 100%;
margin: auto;
}
</style>
</head>
<!-- slider starts -->
<div class="container">
<br>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
<li data-target="#myCarousel" data-slide-to="4"></li>
<li data-target="#myCarousel" data-slide-to="5"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listBox">
<div class="item active">
<img src="./bootstrap/img/cs-1.jpg" alt="Chania" width="1300" height="600">
<div class="carousel-caption">
<h3>Chania</h3>
<p>The atmosphere in Chania has a touch of Florence and Venice.</p>
</div>
</div>
<div class="item">
<img src="./bootstrap/img/cs-2.jpg" alt="Chania" width="1300" height="600">
<div class="carousel-caption">
<h3>Chania</h3>
<p>The atmosphere in Chania has a touch of Florence and Venice.</p>
</div>
</div>
<div class="item">
<img src="./bootstrap/img/cs-3.jpg" alt="Flower" width="1300" height="600">
<div class="carousel-caption">
<h3>Flowers</h3>
<p>Beautiful flowers in Kolymbari,Crete.</p>
</div>
</div>
<div class="item">
<img src="./bootstrap/img/cs-4.jpg" alt="Flower" width="1300" height="600">
<div class="carousel-caption">
<h3>Flowers</h3>
<p>Beautiful flowers in Kolymbari,Crete.</p>
</div>
</div>
<div class="item">
<img src="./bootstrap/img/cs-5.jpg" alt="Chania" width="1300" height="600">
<div class="carousel-caption">
<h3>Chania</h3>
<p>The atmosphere in Chania has a touch of Florence and Venice.</p>
</div>
</div>
<div class="item">
<img src="./bootstrap/img/cs-6.jpg" alt="Chania" width="1300" height="600">
<div class="carousel-caption">
<h3>Chania</h3>
<p>The atmosphere in Chania has a touch of Florence and Venice.</p>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">PrevIoUs</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<!-- slider ends -->
这是离线js
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="./bootstrap/js/jquery.min.js"></script>
<script type="text/javascript" src="./bootstrap/js/popper.min.js"></script>
<script type="text/javascript" src="./bootstrap/js/bootstrap.min.js"></script>```
i dont kNow where the problem is[enter image description here][1]
[1]: https://i.stack.imgur.com/sVQZf.jpg
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。