--- id: bad87fee1348cd8acef08813 title: 可选操作样式 btn-info challengeType: 0 forumTopicId: 16770 dashedName: call-out-optional-actions-with-btn-info --- # --description-- Bootstrap 有着丰富的预定义按钮颜色。 浅蓝色的 `btn-info` class 通常用在备选操作上。 在 `Like` 按钮下方创建包含文本 `Info` 的块级 Bootstrap 按钮,然后为该按钮添加 Bootstrap 的 `btn-info` 和 `btn-block` classes。 注意:这些按钮仍然需要 `btn` 和 `btn-block` classes。 # --hints-- 应创建一个新的包含 `Info` 文本的 `button` 元素。 ```js assert(new RegExp('info', 'gi').test($('button').text())); ``` 两个按钮的 class 属性应该包含 `btn` 和 `btn-block`。 ```js assert($('button.btn-block.btn').length > 1); ``` 新按钮的 class 属性应该含有 `btn-info`。 ```js assert($('button').hasClass('btn-info')); ``` 确保所有的 `button` 元素都有一个闭合标签。 ```js assert( code.match(/<\/button>/g) && code.match(/

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
``` # --solutions-- ```html

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back. Three kittens running towards the camera.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```