我刚刚开始使用 LinkedIn 的 Hopscotch 为新用户创建页面浏览。使用起来似乎很简单,除了所有元素似乎都没有对齐,如下图所示。知道如何解决这个问题吗?
这是我的 js 代码:
var tour = {
id: "hopscotch",
showPrevButton: true,
steps: [{
title: "About Me",
content: "This is the header of my page.",
target: 'about_edit',
placement: "bottom",
xOffset: '-20'
},
{
title: "About Me",
content: "This is the header of my page.",
target: 'work_edit',
placement: "bottom"
}]
};
// Start the tour!
hopscotch.startTour(tour);