--- id: bad87fee1348bd9acde08812 title: Make Images Mobile Responsive challengeType: 0 videoUrl: '' localeTitle: Hacer móviles las imágenes receptivas --- ## Description
Primero, agregue una nueva imagen debajo de la existente. Establezca su atributo 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.
## Instructions
## Tests
```yml tests: - text: Debes tener un total de dos imágenes. testString: 'assert($("img").length === 2, "You should have a total of two images.");' - text: Su nueva imagen debe estar por debajo de su imagen anterior y tener la clase 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.");' ```
## Challenge Seed
```html

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```js // solution required ```