Я тестирую Bootstrap Tour для очень простой тестовой страницы, которую у меня есть. Содержимое отображается, но функциональность тура не вызывает по какой-то причине. Может ли кто-нибудь сказать мне, что я могу делать неправильно?Bootstrap Tour Не работает
Спасибо :)
Пожалуйста, найти свой код прилагается ниже
<html>
<head>
<meta charset="utf-8">
<title> This is a testing page for bootstrap tour </title>
<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../bootstraptour/build/css/bootstrap-tour.min.css" rel="stylesheet">
<link href="../bootstraptour/build/css/bootstrap-tour-standalone.min.css" rel="stylesheet">
</head>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="../bootstrap/js/jquery.min.js"></script>
<script src="../bootstrap/js/bootstrap.min.js"></script>
<script src="../bootstraptour/build/js/bootstrap-tour.min.js"></script>
<script src="../bootstraptour/build/js/bootstrap-tour-standalone.min.js"></script>
<script>
var tour = new Tour();
// Add your steps. Not too many, you don't really want to get your users sleepy
tour.addSteps([{
element: "#content", // string (jQuery selector) - html element next to which the step popover should be shown
title: "Title of my step", // string - title of the popover
content: "Content of my step" // string - content of the popover
}, {
element: "#content1",
title: "Title of my step",
content: "Content of my step"
}]);
// Initialize the tour
tour.init();
// Start the tour
tour.start();
</script>
<body>
<div id="content">
Hello, World!
</div>
<br>
<br>
<br>
<div id="content1">
Another Hello, World!
</div>
</body>
</html>
Какая версия Bootstrap? Кроме того, вам не хватает типа doctype и метатег viewport. –
Не включайте оба «bootstrap-tour.min.js» и «bootstrap-tour-standalone.min.js». Поскольку вы используете bootstrap, вы не должны включать 'bootstrap-tour-standalone.min.js' – Medard