javascript - Intro Js 帮助导览

标签 javascript intro.js

有没有一种方法可以自定义 intro js 中的项目符号,以便用户可以确定要跳到哪一步? 我被问到项目符号是否可以有某种标识,以便用户在尝试访问特定组件的帮助时可以确定。

http://jsfiddle.net/ee2s3p11/

蓝色项目符号用于直接导航到步骤,如果可以自定义这些蓝色项目符号,用户将更容易跳转到他们正在寻找的帮助组件。

步骤1 第2步 步骤 3 步骤4

点我!

.introjs-tooltip {
    min-width: 250px;
    max-width: 250px;
} 
.introjs-bullets ul li a {
    width: 15px;
    height: 15px;
    background-color: blue;
}

最佳答案

这个怎么样:

.introjs-bullets ul li a:after {
  content: attr(data-stepnumber);
  color:#fff; position:relative; top:-2px;left:-2px;
}

看 fiddle

http://jsfiddle.net/ee2s3p11/1/

关于javascript - Intro Js 帮助导览,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25450910/

相关文章:

javascript - 有没有办法将变量从 ui.router 传递给 Controller ​​?

intro.js - 一次显示所有 intro.js 导览步骤

javascript - 我可以使用超过 2 个页面的多个 intro.js 吗?

javascript - intro.js 是如何工作的?

javascript - JS如何使用父函数的参数调用函数内部的函数?

javascript - 如何解决 ReactJS 中帖子的增加和减少

javascript - “the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded” 来自 Android React Native 中的 super 代理

javascript - 配置 setinterval 函数以获得无限重复

javascript - iframe 中的 Intro.js

javascript - 如何在多页intro.js游览的最后一步添加 'Done'按钮?