44 lines
906 B
Markdown
44 lines
906 B
Markdown
---
|
||
title: Add Elements within Your Bootstrap Wells
|
||
localeTitle: 在Bootstrap Wells中添加元素
|
||
---
|
||
## 在Bootstrap Wells中添加元素
|
||
|
||
在最后一次挑战中,您已经使用井类创建了一个div,此挑战现在要求您在每个井中添加3个按钮元素。
|
||
|
||
### 暗示
|
||
|
||
按钮声明如下:
|
||
|
||
```html
|
||
|
||
<button></button>
|
||
```
|
||
|
||
### 解
|
||
|
||
由于我们必须在每个井中声明3个按钮,我们将执行以下操作:
|
||
|
||
```html
|
||
|
||
<div class="container-fluid">
|
||
<h3 class="text-primary text-center">jQuery Playground</h3>
|
||
<div class="row">
|
||
<div class="col-xs-6">
|
||
<div class="well">
|
||
<button></button>
|
||
<button></button>
|
||
<button></button>
|
||
</div>
|
||
</div>
|
||
<div class="col-xs-6">
|
||
<div class="well">
|
||
<button></button>
|
||
<button></button>
|
||
<button></button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
``` |