Tooltips not showing when hovering over SVG polygons

前端 未结 1 803
北恋
北恋 2020-12-20 11:20

I have an SVG map of Colorado with polygons for each county. I\'d like the county name to pop up on mouse hover, but that isn\'t happening. I have the counties set to chan

相关标签:
1条回答
  • 2020-12-20 11:56

    For SVG you need to use a nested <title> element rather than a title attribute. E.g. <polygon points="..."><title>your title</title></polygon>

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