Answer the question
In order to leave comments, you need to log in
Use does not display content on the link, what should I do?
Hello, I ran into such a problem: I made a separate svg file ...
<svg class="d-none" aria-hidden="true">
<symbol id="icon-logo" viewBox="0 0 512 512">
<path d="*секрет*" />
</symbol>
</svg>
iframe.js-iframeSvg(src="./assets/svg/icons.svg", onload="this.before(this.contentDocument.children[0]); this.remove();")
svg(alt="*что-то*").d-block.p-centered.icon-4rem
use(xlink:href="#icon-logo")
<svg class="d-block p-centered icon-4rem" alt="*что-то*">
<use xlink:href="#icon-logo">
#shadow-root (closed)
</use>
</svg>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question