Files
freeCodeCamp/curriculum/challenges/chinese-traditional/03-front-end-libraries/bootstrap/create-bootstrap-wells.md
Nicholas Carrigan (he/him) 3da4be21bb chore: seed chinese traditional (#42005)
Seeds the chinese traditional files manually so we can deploy to
staging.
2021-05-05 22:43:49 +05:30

1.4 KiB
Raw Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
bad87fee1348bd9aec908848 創建 Bootstrap Wells 0 16825 create-bootstrap-wells

--description--

Bootstrap 有一個叫作 well 的 class作用是使界面更具層次感。

在每一個 class 屬性爲 col-xs-6div 元素中都嵌入一個帶有 well class 的 div 元素。

--hints--

應在每一個 class 屬性爲 col-xs-6div 元素中添加一個帶有 well class 的 div 元素。

assert($('div.col-xs-6').not(':has(>div.well)').length < 1);

兩個 class 爲 col-xs-6div 元素都應該嵌入一個 class 爲 rowdiv 元素。

assert($('div.row > div.col-xs-6').length > 1);

確保所有的 div 元素都有一個閉合標籤。

assert(
  code.match(/<\/div>/g) &&
    code.match(/<div/g) &&
    code.match(/<\/div>/g).length === code.match(/<div/g).length
);

--seed--

--seed-contents--

<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>

--solutions--

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <div class="well"></div>
    </div>
    <div class="col-xs-6">
      <div class="well"></div>
    </div>
  </div>
</div>