<ul class="dropdown-menu pull-right">
<li role="presentation" class="active">...</li>
<li role="presentation" class="divider">...</li>
</ul>
</div>
<li role="presentation" class="active">...</li>
<li role="presentation" class="divider">...</li>
</ul>
</div>
2015-07-08
2.
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
...
<span class="caret"></span>
</button>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
...
<span class="caret"></span>
</button>
2015-07-08
一定要区别好:
select(下拉选择框)和dropdown(下拉菜单)。
1.
<select>
<option>..</option>
</select>
select(下拉选择框)和dropdown(下拉菜单)。
1.
<select>
<option>..</option>
</select>
2015-07-08
dropdown中菜单项状态:
1.active;
2.focus;
3.disabled;
4.hover
<li role="presentation" class="active">..</li>
1.active;
2.focus;
3.disabled;
4.hover
<li role="presentation" class="active">..</li>
2015-07-08
下拉菜单项右对齐:.pull-right
<ul class="dropdown-menu pull-right">
</ul>
<ul class="dropdown-menu pull-right">
</ul>
2015-07-08
dropdown添加菜单项头部:.dropdown-header
<li role="presentation" class="dropdown-header">.........</li>
<li role="presentation" class="dropdown-header">.........</li>
2015-07-08
下拉菜单(dropdown)的下拉菜单项中添加分隔线:
<li role="presentation" class="divider">...</div>
<li role="presentation" class="divider">...</div>
2015-07-08
<ul class="dropdown-menu">
注意:区别dropdown(下拉菜单)和select(下拉列表框)。
注意:区别dropdown(下拉菜单)和select(下拉列表框)。
2015-07-08
3.下拉菜单项使用一个<ul>列表,并且定义一个类名为<dropdown-menu>:
<ul dropdown-menu>
<li role="presentation"></li>
</ul>
<ul dropdown-menu>
<li role="presentation"></li>
</ul>
2015-07-08
Bootstrap中的下拉菜单插件:
1.使用一个名为“dropdown”的容器包裹了整个下拉菜单元素;
<div class="dropdown"></div>
2.使用一个<button>按钮作为父菜单,并且定义类名“.dropdown-toggle”和自定义“data-toggle”属性,且值必须和最外层容器类名一致:
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
.......
<span class="caret"></span>
</button>
1.使用一个名为“dropdown”的容器包裹了整个下拉菜单元素;
<div class="dropdown"></div>
2.使用一个<button>按钮作为父菜单,并且定义类名“.dropdown-toggle”和自定义“data-toggle”属性,且值必须和最外层容器类名一致:
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
.......
<span class="caret"></span>
</button>
2015-07-08
<div class="row">
<div class="rol-md-3 rol-md-offset-2"></div>
</div>
<div class="rol-md-3 rol-md-offset-2"></div>
</div>
.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th{
background-color:#f9f9f9;
}
.table-striped > tbody > tr:nth-child(odd) > th{
background-color:#f9f9f9;
}
2015-07-08