src
para https://bit.ly/fcc-running-cats
. Seria ótimo se essa imagem pudesse ser exatamente a largura da tela do nosso telefone. Felizmente, com o Bootstrap, tudo o que precisamos fazer é adicionar a classe img-responsive
à sua imagem. Faça isso e a imagem deve caber perfeitamente na largura da sua página. img-responsive
.
testString: 'assert($("img:eq(1)").hasClass("img-responsive"), "Your new image should be below your old one and have the class img-responsive
.");'
- text: Sua nova imagem não deve ter a classe smaller-image
.
testString: 'assert(!$("img:eq(1)").hasClass("smaller-image"), "Your new image should not have the class smaller-image
.");'
- text: 'Sua nova imagem deve ter um src
de https://bit.ly/fcc-running-cats
.'
testString: 'assert($("img:eq(1)").attr("src") === "https://bit.ly/fcc-running-cats", "Your new image should have a src
of https://bit.ly/fcc-running-cats
.");'
- text: Certifique-se de que seu novo elemento img
tenha um colchete angular de fechamento.
testString: 'assert(code.match(//g).length === 2 && code.match(/img element has a closing angle bracket.");'
```
Click here for cat photos.
Things cats love:
Top 3 things cats hate: