--- 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` 和 `btn-block` class。 # --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
```