SVG mouse events work in Firefox4 but not in IE8

前端 未结 2 581
走了就别回头了
走了就别回头了 2021-01-23 14:47

I have a standalone SVG file and a separate Javascript file to deal with mouse events triggered from the SVG file. The projects works well with Firefox but somehow I got problem

2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-23 15:25

    As Spudley's answer says, IE8 doesn't support SVG.

    If the image is appearing on your page, thereare a few possibilities:

    • Something in your development stack may be converting it to a raster image (such as a PNG): right click the image and select "Properties", then see what value is reported for "Type".
    • You may have a browser plugin installed that renders SVGs (but does not provide the JavaScript interface). Try running IE8 in Safe Mode.

    Internet Explorer 9 does support SVG, however, so an IE upgrade, where possible, will solve that problem.

提交回复
热议问题