Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/03/2017, 17:52
Avatar de Fernarey1810
Fernarey1810
 
Fecha de Ingreso: noviembre-2008
Mensajes: 214
Antigüedad: 15 años, 5 meses
Puntos: 1
Respuesta: Mostrar una imagen con diferentes tamaños

En este articulo https://carlosazaustre.es/blog/imagenes-responsive/ se ve la idea de crear diferentes tamaños de imagenes
img-mobile.jpg
img-mobileHD.jpg
img-tablet.jpg
img-tabletHD.jpg
img-large.jpg
img-largeHD.jpg

Y menciona el atributo strset, pero no se si conviene hacerlo asi
Código HTML:
Ver original
  1. <img src="img-mobile.jpg"  
  2.             srcset="img-mobileHD.jpg 2x,
  3.             img-tablet.jpg 768w,
  4.             img-tabletHD.jpg 768w 2x,
  5.             img-large.jpg 1200w,
  6.             img-largeHD.jpg 1200w 2x" />