src
en https://bit.ly/fcc-running-cats
. Sería genial si esta imagen pudiera tener exactamente el ancho de la pantalla de nuestro teléfono. Afortunadamente, con Bootstrap, todo lo que tenemos que hacer es agregar la clase img-responsive
a su imagen. Haga esto, y la imagen debe ajustarse perfectamente al ancho de su 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: Tu nueva imagen no debe tener la clase smaller-image
.
testString: 'assert(!$("img:eq(1)").hasClass("smaller-image"), "Your new image should not have the class smaller-image
.");'
- text: 'Su nueva imagen debe tener un 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: Asegúrese de que su nuevo elemento img
tenga un soporte de ángulo de cierre.
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: