简体   繁体   中英

Hyperlinks for SVG in HTML file

I'm having an issue with adding a pretty complex SVG image with many many paths into my HTML index.page. I edit the SVG image the best I can within Inkscape and it's own SVG file, but once it comes to adding links to those paths in the SVG, I have to then embed it into my HTML file, which SLOWS things down. Is their anyway I can minimize this issue or even edit and create links to these many paths without doing so within my HTML file. In short, is there a way to add links to my SVG paths without it being in HTML, and then just refer to it in HTML without having to add the entire massive SVG file? Really really could use some help here as I'm not the most expert programmer around.

Thanks in advance!

As simple as that.

   <img 
        src="chitchat.svg" 
        height="100"
        width="100" 
    />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM