我正在使用bootstrap Tour ..它在单页上运行良好,并且借助“下一步”按钮从一个页面(first.html)有效地转到另一个页面(second.html)......问题是当我按下上一个按钮时(在 second.html 上)页面它永远不会进入 first.html 页面。解决问题的任何帮助
我的代码在下面
新的.html(第一页)
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
<link href="build/css/bootstrap-tour-standalone.min.css" rel="stylesheet" />
<script src="build/js/bootstrap-tour-standalone.min.js"></script>
<script src="build/js/Script.js"></script>
<style>
.new {
margin: 20px auto;
width: 500px;
padding: 50px;
background: #EBEBEB;
}
</style>
</head>
<body>
<div id="test" class="new">
<h1>Header Part</h1>
</div>
<div id="test1" class="new">
<h1>Footer Part</h1>
</div>
</body>
</html>
mine.html(第二页)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
<link href="build/css/bootstrap-tour-standalone.min.css" rel="stylesheet" />
<script src="build/js/bootstrap-tour-standalone.min.js"></script>
<script src="build/js/Script.js"></script>
<title>mine</title>
</head>
<body>
<style>
.man {
float: left;
background: red;
width: 400px;
}
</style>
<div id="dumy" class="man">
<h1>This is My Self Made Div</h1>
</div>
</body>
</html>
脚本.js
$(function () {
var tour = new Tour({
steps: [
{
element: "#test",
title: "Title of my step",
content: "This is Header"
},
{
element: "#test1",
title: "Title of my step",
content: "This is footer"
},
{
path: "/mine.html",
element: "#dumy",
title: "Title of my step",
content: "I made this step own",
// backdrop: true
}
]
});
// Initialize the tour
tour.init();
// Start the tour
tour.start();
});