style
元素中删除.smaller-image
.red-text
, p
和.smaller-image
CSS声明,以便style
元素中剩下的唯一声明是h2
和thick-green-border
。然后删除包含死链接的p
元素。然后从h2
元素中删除red-text
类,并将其替换为text-primary
Bootstrap类。最后,从第一个img
元素中删除“small-image”类,并将其替换为img-responsive
类。 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.");'
```
Click here for cat photos.
Things cats love:
Top 3 things cats hate: