--- id: bad87fee1348cd8acdf08812 title: Create a Bootstrap Button challengeType: 0 videoUrl: '' localeTitle: 创建一个Bootstrap按钮 --- ## Description
Bootstrap有自己的button元素样式,看起来比纯HTML样式好得多。在您的大型小猫照片下方创建一个新的button元素。给它btnbtn-default类,以及“Like”的文本。
## Instructions
## Tests
```yml tests: - text: 使用文本“Like”创建一个新的button元素。 testString: 'assert(new RegExp("like","gi").test($("button").text()) && ($("img.img-responsive + button.btn").length > 0), "Create a new button element with the text "Like".");' - text: 你的新按钮应该有两个类: btnbtn-default 。 testString: 'assert($("button").hasClass("btn") && $("button").hasClass("btn-default"), "Your new button should have two classes: btn and btn-default.");' - text: 确保所有button元素都有一个结束标记。 testString: 'assert(code.match(/<\/button>/g) && code.match(/
## Challenge Seed
```html

CatPhotoApp

Click here for cat photos.

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

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```js // solution required ```