1.5 KiB
1.5 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aec908746 | House our page within a Bootstrap container-fluid div | 0 | 将我们的页面放在Bootstrap容器 - 流体div中 |
Description
container-fluid
将h3
元素嵌套在div
元素container-fluid
。 Instructions
Tests
tests:
- text: 你的<code>div</code>元素应该有class <code>container-fluid</code> 。
testString: 'assert($("div").hasClass("container-fluid"), "Your <code>div</code> element should have the class <code>container-fluid</code>.");'
- text: 确保每个<code>div</code>元素都有一个结束标记。
testString: 'assert(code.match(/<\/div>/g) && code.match(/<div/g) && code.match(/<\/div>/g).length === code.match(/<div/g).length, "Make sure each of your <code>div</code> elements has a closing tag.");'
- text: 将<code>h3</code>元素<code>div</code>元素中。
testString: 'assert($("div").children("h3").length >0, "Nest your <code>h3</code> element inside a <code>div</code> element.");'
Challenge Seed
<h3 class="text-primary text-center">jQuery Playground</h3>
Solution
// solution required