style
元素里的 .red-text
, p
, 和 .smaller-image
CSS 声明,使 style
元素留下的声明只有 h2
和 thick-green-border
.
删除包含死链接的 p
元素。 然后将 h2
的 red-text
class 替换为 Bootstrap 的 text-primary
class.
最后, 将你第一个 img
元素的 "smaller-image" class 替换为 img-responsive
class.
red-text
。
testString: assert(!$("h2").hasClass("red-text"));
- text: h2 元素的 class 应为 text-primary
。
testString: assert($("h2").hasClass("text-primary"));
- text: 你的段落元素(p)应该不再使用 Monospace
字体。
testString: assert(!$("p").css("font-family").match(/monospace/i));
- text: 移除你第一张图片的 class 属性 smaller-image
。
testString: assert(!$("img").hasClass("smaller-image"));
- text: 给你的第一张图片添加 class 属性 img-responsive
。
testString: assert($(".img-responsive").length > 1);
```
Click here for cat photos.
Things cats love:
Top 3 things cats hate: