Raphael.js中不需要的黑色轮廓

时间:2012-07-05 17:56:46

标签: javascript svg raphael vector-graphics

我正在尝试使用raphael.js创建一个动画菜单栏。它在Firefox中运行良好,但在Chromium中,图形周围出现黑色轮廓。 View this jsFiddle in Chrome

当图形移动时,它似乎也留下了这个黑色轮廓的痕迹,如下图所示。我已尝试将"stroke-width"属性设置为0,但这似乎没有任何效果。

Raphael black outline problem

非常感谢任何有关此事的帮助。

1 个答案:

答案 0 :(得分:3)

我遇到了这个问题,它出现在Chrome 18和19中。由于Chrome 20只有几天的历史,许多用户仍然会安装以前的版本,因此仍然值得修复它。

在Raphael中,只需设置stroke: none或平原svg element.setAttribute("stroke", "none")

即可
相关问题