我使用以下代码来添加图片:
node.append("image")
.attr("xlink:href", function(d) { return d.img; })
.attr("x", -25)
.attr("y", -25)
.attr("width", 50)
.attr("height", 50)
我想让图片变成圆形。我已经尝试过使用以下代码:
.attr("style", "border-radius: 30px;");
但是它没有起作用...我也尝试了这个。
<style>
.node image{
border-color: 2px solid orange;
border-radius: 25px;
}
</style>
但是没有任何效果。