Bootstrap 3是否为表单提供了预先构建的步骤选项?

fab*_*bbb 13 css jquery-ui css3 twitter-bootstrap-3

在此输入图像描述

无法找到文档中的任何内容,但也许有人知道更好或者可以建议使用可用属性来共同破解它?

如果没有在bootstrap中有没有人知道可以创建CSS/jQuery/JS的gem(rails)或生成器?

Mat*_*říž 15

您还可以在GitHub上尝试此Bootstrap 3 Nav Wizard版本,包括LESS文件:

https://github.com/acornejo/bootstrap-nav-wizard

这里演示:http://acornejo.github.io/bootstrap-nav-wizard/

预览(orig):

Bootstrap 3导航向导预览1

预览(自定义):

Bootstrap 3导航向导预览2


Adr*_*uez 13

也许你正在寻找这个.查看下面的演示.如果它看起来不像下面的图像,只需调整窗口大小.

小提琴

在此输入图像描述

HTML

<h3>Wizard</h3>
<div class="wizard">
    <a><span class="badge">1</span> Set Global Properties</a>
    <a><span class="badge">2</span> Specify Entry Scheme</a>
    <a class="current"><span class="badge badge-inverse">3</span> Create Test Entry</a>
    <a><span class="badge">4</span> Check Your Data and Generate Portal</a>
</div>
Run Code Online (Sandbox Code Playgroud)

CSS (或SCSS代替)

.wizard a {
    padding: 10px 12px 10px;
    margin-right: 5px;
    background: #efefef;
    position: relative;
    display: inline-block;
}
.wizard a:before {
    width: 0;
    height: 0;
    border-top: 20px inset transparent;
    border-bottom: 20px inset transparent;
    border-left: 20px solid #fff;
    position: absolute;
    content: "";
    top: 0;
    left: 0;
}
.wizard a:after {
    width: 0;
    height: 0;
    border-top: 20px inset transparent;
    border-bottom: 20px inset transparent;
    border-left: 20px solid #efefef;
    position: absolute;
    content: "";
    top: 0;
    right: -20px;
    z-index: 2;
}
.wizard a:first-child:before,
.wizard a:last-child:after {
    border: none;
}
.wizard a:first-child {
    -webkit-border-radius: 4px 0 0 4px;
       -moz-border-radius: 4px 0 0 4px;
            border-radius: 4px 0 0 4px;
}
.wizard a:last-child {
    -webkit-border-radius: 0 4px 4px 0;
       -moz-border-radius: 0 4px 4px 0;
            border-radius: 0 4px 4px 0;
}
.wizard .badge {
    margin: 0 5px 0 18px;
    position: relative;
    top: -1px;
}
.wizard a:first-child .badge {
    margin-left: 0;
}
.wizard .current {
    background: #007ACC;
    color: #fff;
}
.wizard .current:after {
    border-left-color: #007ACC;
}
Run Code Online (Sandbox Code Playgroud)