I'm working with the <picture>
tag to use its responsive function and inserting multiple sizes of the same image into a single object according to the screen resolution by the "media" parameter of the <source>
tag. In chrome and Mozilla Firefox the results were perfect but in cell phones and IE11 did not work, they are just using the image in the tag <img>
follows an example of the error:
a#capa-individual{
width: 85%;
position: relative;
display: block;
margin-top: 3%;
margin-bottom: 3%;
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
border: 30px solid rgba(255,0,0,.3);
}
.foto1{
width: 100%;
vertical-align: middle;
text-align: center;
border-radius: 5px;
border: 0px solid rgba(0,0,0,.7);
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="erro.css">
</head>
<body>
<a id="capa-individual" href="individual.html">
<picture>
<source class="foto1" srcset="http://thumbs.dreamstime.com/x/lying-male-dalmatian-18553200.jpg" media="(max-width: 480px)">
<source class="foto1" srcset="http://thumbs.dreamstime.com/x/liver-spotted-dalmatian-bitch-17136208.jpg" media="(min-width:481px)">
<img class="foto1" src="http://thumbs.dreamstime.com/x/liver-spotted-dalmatian-bitch-17136208.jpg.jpg"alt="">
</picture>
</a>
</body>
</html>