1
我試圖讓Shepard導遊工作。謝潑德旅遊指南JS不滾動
http://github.hubspot.com/shepherd/docs/welcome/
我已經設置scrollTo:真正的全球和各謝潑德巡演停止,但頁面跳轉不管。這裏有一個例子:
http://codepen.io/anon/pen/mRvdKv
(function() {
var tour = new Shepherd.Tour({
defaults: {
classes: 'shepherd-theme-square',
scrollTo: true
}
});
tour.addStep('example', {
title: 'Example Shepherd',
text: 'This is the first step',
attachTo: '#test1 bottom',
advanceOn: '.docs-link click',
scrollTo: true
});
tour.addStep('example', {
title: 'Example Shepherd',
text: 'This is the second step',
attachTo: '#test2 bottom',
advanceOn: '.docs-link click',
scrollTo: true
});
tour.addStep('example', {
title: 'Example Shepherd',
text: 'This is the third step',
attachTo: '#test3 top',
advanceOn: '.docs-link click',
scrollTo: true
});
tour.start();
})();
我只是失去了一些東西明顯?
這應該是公認的答案 - 完美的工作對我來說.. –