--- id: bad87fee1348bd9acde08812 title: Hacer que las imágenes se adapten a dispositivos móviles challengeType: 0 forumTopicId: 18232 dashedName: make-images-mobile-responsive --- # --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 tus imágenes. Haga esto y la imagen debe ajustarse perfectamente al ancho de su página. # --hints-- Debe tener un total de dos imágenes. ```js assert($('img').length === 2); ``` Tu nueva imagen debería estar debajo de la anterior y tener la clase `img-responsive`. ```js assert($('img:eq(1)').hasClass('img-responsive')); ``` Tu nueva imagen no debería tener la clase `smaller-image`. ```js assert(!$('img:eq(1)').hasClass('smaller-image')); ``` Tu nueva imagen debe tener el atributo `src` en `https://bit.ly/fcc-running-cats`. ```js assert($('img:eq(1)').attr('src') === 'https://bit.ly/fcc-running-cats'); ``` Tu nuevo elemento `img` debe tener una etiqueta de cierre. ```js assert( code.match(//g).length === 2 && code.match(/

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
``` # --solutions-- ```html

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```