* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
58 lines
1.1 KiB
Markdown
58 lines
1.1 KiB
Markdown
---
|
||
id: bad87fee1348bd9aec908847
|
||
title: 分割你的 Bootstrap Row
|
||
challengeType: 0
|
||
forumTopicId: 18306
|
||
dashedName: split-your-bootstrap-row
|
||
---
|
||
|
||
# --description--
|
||
|
||
现在我们已经有了一个 Bootstrap Row,让我们把它分成两列来放置我们的元素。
|
||
|
||
在行内创建两个 class 属性为 `col-xs-6` 的 `div` 元素。
|
||
|
||
# --hints--
|
||
|
||
将两个 `div class='col-xs-6'` 元素内嵌入你的 `div class='row'` 元素中。
|
||
|
||
```js
|
||
assert($('div.row > div.col-xs-6').length > 1);
|
||
```
|
||
|
||
确保你的 `div` 元素都有一个闭合标签。
|
||
|
||
```js
|
||
assert(
|
||
code.match(/<\/div>/g) &&
|
||
code.match(/<div/g) &&
|
||
code.match(/<\/div>/g).length === code.match(/<div/g).length
|
||
);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```html
|
||
<div class="container-fluid">
|
||
<h3 class="text-primary text-center">jQuery Playground</h3>
|
||
<div class="row">
|
||
|
||
|
||
</div>
|
||
</div>
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```html
|
||
<div class="container-fluid">
|
||
<h3 class="text-primary text-center">jQuery Playground</h3>
|
||
<div class="row">
|
||
<div class="col-xs-6"></div>
|
||
<div class="col-xs-6"></div>
|
||
</div>
|
||
</div>
|
||
```
|