How to use external SVG in HTML?

后端 未结 1 771
独厮守ぢ
独厮守ぢ 2020-12-24 00:45

I try to make an HTML that references to an SVG file, that SVG file is interractive (CSS hover):

  1. If I use I loo

相关标签:
1条回答
  • 2020-12-24 01:24

    You should embed the image by using <object> tag:

    <object data="algerie.svg" type="image/svg+xml"></object>
    

    Refer to this question for the details: Do I use <img>, <object>, or <embed> for SVG files?

    0 讨论(0)
提交回复
热议问题