--- id: bad87fee1347bd9aedf08845 title: Ditch Custom CSS for Bootstrap challengeType: 0 videoUrl: '' localeTitle: Ditch Custom CSS for Bootstrap --- ## Description
我们可以使用Bootstrap的内置样式代替我们之前创建的自定义样式来清理代码并使我们的Cat Photo App看起来更加传统。别担心 - 以后会有足够的时间来定制CSS。从style元素中删除.smaller-image .red-textp.smaller-image CSS声明,以便style元素中剩下的唯一声明是h2thick-green-border 。然后删除包含死链接的p元素。然后从h2元素中删除red-text类,并将其替换为text-primary Bootstrap类。最后,从第一个img元素中删除“small-image”类,并将其替换为img-responsive类。
## Instructions
## Tests
```yml tests: - text: 你的h2元素不应该有red-text类。 testString: 'assert(!$("h2").hasClass("red-text"), "Your h2 element should no longer have the class red-text.");' - text: 您的h2元素现在应该具有text-primary类。 testString: 'assert($("h2").hasClass("text-primary"), "Your h2 element should now have the class text-primary.");' - text: 您的段落元素不应再使用Monospace 。 testString: 'assert(!$("p").css("font-family").match(/monospace/i), "Your paragraph elements should no longer use the font Monospace.");' - text: 从顶部图像中删除smaller-image类。 testString: 'assert(!$("img").hasClass("smaller-image"), "Remove the smaller-image class from your top image.");' - text: 将img-responsive类添加到您的顶部图像。 testString: 'assert($(".img-responsive").length > 1, "Add the img-responsive class to your top image.");' ```
## 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 ```