Answer the question
In order to leave comments, you need to log in
Why doesn't IE11 see the svg sprite?
Good day!
On the page I use 2 svg sprites, both are generated by gulp via symbol. The first is connected at the top of the page directly in html, like this:
<svg xmlns="http://www.w3.org/2000/svg">
<symbol id="icon-1" viewBox="0 0 48 43" preserveAspectRatio="xMidYMid">
<path d="....." class="cls-1"></path>
</symbol>
<symbol id="icon-2" viewBox="0 0 53 40" preserveAspectRatio="xMidYMid">
<path d="....." class="cls-1"></path>
</symbol>
<svg width="48" height="43">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-1"></use>
</svg>
<svg class="contacts-list__icon" width="22" height="21">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="images/sprite.svg#icon-3"></use>
</svg>
Answer the question
In order to leave comments, you need to log in
To support IE svg sprite from an external file, you need to use the polyfills https://github.com/jonathantneal/svg4everybody or https://github.com/Keyamoon/svgxuse
I recently switched to icon fonts. Try it, you will like it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question