Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个关于突出显示图像的问题。当我单击图像时,笔触样式必须可见,当我将光标移离图像时,笔触样式必须不可见。 我用这个代码作为参考 在这个例子中,你能解决吗?我可以隐藏锚点,但我不能隐藏笔画。提前致谢
不需要时将描边颜色设置为透明。
var anchor = new Kinetic.Circle({ stroke: 'transparent', ... anchor.on('mouseover', function() { this.setStroke('#666'); ... anchor.on('mouseout', function() { this.setStroke('transparent'); ...