Files
freeCodeCamp/curriculum/challenges/chinese/03-front-end-libraries/bootstrap/apply-the-default-bootstrap-button-style.chinese.md
2019-02-19 11:34:27 +03:00

1.5 KiB

id, title, challengeType, videoUrl, localeTitle
id title challengeType videoUrl localeTitle
bad87fee1348bd9aec908850 Apply the Default Bootstrap Button Style 0 应用默认引导按钮样式

Description

Bootstrap有另一个名为btn-default按钮类。将btnbtn-default类同时应用于每个button元素。

Instructions

Tests

tests:
  - text: 将<code>btn</code>类应用于每个<code>button</code>元素。
    testString: 'assert($(".btn").length > 5, "Apply the <code>btn</code> class to each of your <code>button</code> elements.");'
  - text: 将<code>btn-default</code>类应用于每个<code>button</code>元素。
    testString: 'assert($(".btn-default").length > 5, "Apply the <code>btn-default</code> class to each of your <code>button</code> elements.");'

Challenge Seed

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

Solution

// solution required