Zizhang Ai Zizhang Ai - 1 year ago 100
CSS Question

How to render svg with cripEdges under IE11?

I'm trying to render svg lines. I can set

shape-rendering
to
crispEdges
under chrome, but it doesn't work with IE11. How can I do the same with IE11? Thanks!
enter image description here

Answer Source

Turns out I have to set the attribute of the svg element, not the "style" of it. I was setting it to <line style="shape-rendering: crispEdges" />. It should be <line shape-rendering="crispEdges"/>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download