Files
freeCodeCamp/curriculum/challenges/chinese/03-front-end-libraries/bootstrap/create-a-bootstrap-row.chinese.md
Kristofer Koishigawa b3213fc892 fix(i18n): chinese test suite (#38220)
* fix: Chinese test suite

Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working.

* fix: ran script, updated testStrings and solutions
2020-03-03 18:49:47 +05:30

1.5 KiB

id, title, challengeType, videoUrl, localeTitle
id title challengeType videoUrl localeTitle
bad87fee1348bd9bec908846 Create a Bootstrap Row 0 创建一个Bootstrap行

Description

现在我们将为内联元素创建一个Bootstrap行。在h3标记下创建一个div元素,其中包含一个row类。

Instructions

Tests

tests:
  - text: 在<code>h3</code>元素下面添加一个<code>div</code>元素。
    testString: assert(($("div").length > 1) && ($("div.row h3.text-primary").length == 0) && ($("div.row + h3.text-primary").length == 0) && ($("h3.text-primary + div.row").length > 0));
  - text: 你的<code>div</code>元素应该有类<code>row</code>
    testString: assert($("div").hasClass("row"));
  - text: 你的<code>row div</code>应该嵌套在<code>container-fluid div</code>
    testString: assert($("div.container-fluid div.row").length > 0);
  - text: 确保你的<code>div</code>元素有一个结束标记。
    testString: assert(code.match(/<\/div>/g) && code.match(/<div/g) && code.match(/<\/div>/g).length === code.match(/<div/g).length);

Challenge Seed

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>

</div>

Solution

// solution required