src
属性设置为https://bit.ly/fcc-running-cats
。如果这个图像可以正好是我们手机屏幕的宽度,那就太好了。幸运的是,使用Bootstrap,我们需要做的就是将img-responsive
类添加到您的图像中。这样做,图像应完全适合您的页面宽度。 img-responsive
类。
testString: assert($("img:eq(1)").hasClass("img-responsive"));
- text: 您的新图片不应该具有smaller-image
类。
testString: assert(!$("img:eq(1)").hasClass("smaller-image"));
- text: '您的新图片应该具有https://bit.ly/fcc-running-cats
的src
。'
testString: assert($("img:eq(1)").attr("src") === "https://bit.ly/fcc-running-cats");
- text: 确保新的img
元素具有关闭角括号。
testString: assert(code.match(/Click here for cat photos.
Things cats love:
Top 3 things cats hate: