Tooltips not showing when hovering over SVG polygons

前端 未结 1 804
北恋
北恋 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 </code> element rather than a title attribute. E.g. <code><polygon points="..."><title>your title

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