1015 B
1015 B
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
bad87fee1348bd9aec908746 | 将页面放在 container-fluid div 中 | 0 | 18198 | house-our-page-within-a-bootstrap-container-fluid-div |
--description--
现在确保页面所有内容都可以响应移动端。
将的 h3
元素内嵌进一个具有 container-fluid
class 的div
元素中。
--hints--
div
元素 class 属性应该为 container-fluid
。
assert($('div').hasClass('container-fluid'));
确保每一个 div
元素都有一个闭合标签。
assert(
code.match(/<\/div>/g) &&
code.match(/<div/g) &&
code.match(/<\/div>/g).length === code.match(/<div/g).length
);
h3
元素应该内嵌于 div
元素。
assert($('div').children('h3').length > 0);
--seed--
--seed-contents--
<h3 class="text-primary text-center">jQuery Playground</h3>
--solutions--
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
</div>