Intro Js help tour

ぃ、小莉子 提交于 2019-12-11 09:53:27

问题


Is there a way to customize the bullets in intro js, such that user can be sure of which step its going to jump on? I was asked if the bullets can have some kind of identification so that user can be sure when trying access help for the particular component.

http://jsfiddle.net/ee2s3p11/

The blue bullets are used for direct navigation to the steps, if some how those blue bullets can be customized, it would be easier for user to jump to the help component they are looking for.

Step 1 Step 2 Step 3 Step 4

Click Me!

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

回答1:


How about this:

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

See the fiddle

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



来源:https://stackoverflow.com/questions/25450910/intro-js-help-tour

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!