0
我正在使用http://bootstraptour.com/来查看应用程序中的功能。Bootstrap Tour无法在下拉菜单上工作
我正在尝试使用本机引导程序下拉列表工作。下拉内容是隐藏的,当游览到达那一步时,我在下拉菜单中添加CSS类“打开”,这是点击它时发生的情况。 (标准引导行为),但它不打开。
我尝试了一切尝试通过首先显示它来隐藏元素的游览附加,但似乎没有任何工作。我创建了一个小提琴,所以你可以看到我想要解释的。
// Instance the tour
var tour = new Tour({
debug: true,
storage: false,
steps: [{
element: "#step1",
title: "Settings",
content: "Content of settings",
placement: "bottom",
}, {
element: "#step2",
title: "Title of my step",
content: "Content of my step",
placement: "bottom",
}, {
element: "#step3",
title: "Title of my step",
content: "Content of my step",
placement: "bottom",
onHidden: function() {
$(".dropdown").addClass("open");
},
}, {
element: "#step4",
title: "Title of my step",
content: "Content of my step",
placement: "bottom",
onShow: function() {
$("#dropdown").addClass("open");
},
}]
});
if (tour.ended()) {
tour.restart();
} else {
tour.init();
tour.start();
}
http://jsfiddle.net/rdoddXL/ku0fx7gq/2/
任何帮助,将不胜感激
感谢
感谢这帮了很多。 – Rob