I
I
Illia T2020-02-11 07:06:14
css
Illia T, 2020-02-11 07:06:14

How to organize a picture replacement if the client is IE11?

Because the donkey does not understand picture, it should probably be replaced with something (in a collision with a donkey). Those. you need to recognize the browser and do something about it. I came across modernizr, but I'm still dealing with it, so I'm making a request to APSquality, all of a sudden you can tell me something about this technology, or offer alternative solutions ... and I also need to run to work :)
Just a word: if there is a solution for View - I would look (a bit familiar).
In general, I need to design a component (so that it can be embedded anywhere) and I master the technology of correctly using images so that everything is beautiful everywhere, as much as possible. So you need to take into account both retinas and all sorts of donkeys, ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex, 2020-02-11
@illiatovpeko

<picture>
 <source srcset="mdn-logo.svg" type="image/svg+xml">
 <img src="mdn-logo.png" alt="MDN">
</picture>

So if IE11 doesn't recognize the picture tag, it will ignore it and just display the nested img, right?

A
Andrey Khokhlov, 2020-02-11
@andrhohlov

https://scottjehl.github.io/picturefill/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question