SVG elements in Chrome not displayed

前端 未结 3 1224
既然无缘
既然无缘 2020-12-17 00:17

Chrome seems not to display elements in inline svg. Here is an example (code below or view it at http://www.bobwyttenbach.com/chromeuse.html):

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-17 01:04

    I spent a long time debugging inline svg use elements not showing up. The chrome bug discussed by BobW seems fixed at this time. To eliminate the same issue caused by something else entirely, try commenting out the tag from your HTML.

    Of course, this will likely break every relative link on your site, but the elements now show up. One step forward, half a step back :)

    Related info here: Using base tag on a page that contains SVG marker elements fails to render marker

提交回复
热议问题