0

我需要创建一个带有选项卡面板和其他面板以获得上下文帮助的网格。

目前我有创建面板和选项卡的代码,如下所示:

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span8 well">
            <ul class="nav nav-tabs">
                <li class="active"> <a href="#home" data-target="#home" data-toggle="tab">Home</a>
                </li>
                <li><a href="#profile" data-target="#profile" data-toggle="tab">Profile</a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active fade in" id="home">home tab content</div>
                <div class="tab-pane" id="profile">profile tab content</div>
            </div>
        </div>
        <div class="span3 well">
            <div class="tab-content">
                Here should came the contextual help
            </div>
        </div>
    </div>
</div>

和强制性的jsFiddle

4

1 回答 1

1

我已经想出了怎么做,我把它留在这里征求意见或帮助试图做同样事情的人:

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span8 well">
            <ul class="nav nav-tabs">
                <li class="active"> <a href="#home" data-target="#home, #home_help" data-toggle="tab">Home</a>
                </li>
                <li><a href="#profile" data-target="#profile, #profile_help" data-toggle="tab">Profile</a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active fade in" id="home">home tab content</div>
                <div class="tab-pane" id="profile">profile tab content</div>
            </div>
        </div>
        <div class="span3 well">
            <div class="tab-content">
                <div class="tab-pane active fade in" id="home_help">home_help content</div>
                <div class="tab-pane fade in" id="profile_help">profile_help content</div>
            </div>
        </div>
    </div>
</div>

和 jsFiddle:http: //jsfiddle.net/AazhZ/

于 2013-05-31T10:39:45.093 回答