css - 如何在IE11下用cripEdges渲染svg?

标签 css internet-explorer svg

我正在尝试渲染 svg 线条。我可以在 chrome 下将 shape-rendering 设置为 crispEdges,但它不适用于 IE11。我怎样才能对 IE11 做同样的事情?谢谢! enter image description here

最佳答案

原来我必须设置 svg 元素的属性,而不是它的“样式”。我把它设置为 <line style="shape-rendering: crispEdges" /> .应该是<line shape-rendering="crispEdges"/>

关于css - 如何在IE11下用cripEdges渲染svg?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44014663/

相关文章:

javascript - javascript 中相对大小 HTML 元素的计算大小错误

javascript - Angular.js 页面转换 & $animate.addClass

css - 我的容器或行位于页面内容的中间,而不是像页脚小部件那样粘在页面底部

javascript - 如何在 Windows Phone 7 上调试 Internet Explorer?

svg - NVD3.js 为图表中的特定条形着色

javascript - D3 : get the bounding box of a selected element

javascript - 加载时停止 CSS 过渡 + 反向过渡

css - 为什么我的打印样式不能在 IE 7 和 IE 8 中呈现?

javascript - 将 JS 与 rollup 和 Babel 捆绑以在 IE11 中使用

html - 为什么 'use' 标签大小与它引用的 svg 元素不匹配?