简体   繁体   English

从链接隐藏默认悬停CSS

[英]To hide the default hover css from link

I am using following code to add links to the graph: 我正在使用以下代码向图表添加链接:

var ln = new joint.dia.Link({
    source: { id: rect.id }, target: { id: curr_selected.id },
     attrs: { '.marker-source': { d: 'M 10 0 L 0 5 L 10 10 z' } }
});

Now when I added this link to graph.A cross symbol for delete operation comes by default on hovering the link but I do not want it .I need a simple arrow which can not be deleted by anyone from the graph. 现在,当我将此链接添加到图形时,悬停链接时默认会出现用于删除操作的十字符号,但我不想要它。我需要一个简单的箭头,该箭头无法被图形中的任何人删除。

You can just set the following in your CSS: 您可以在CSS中设置以下内容:

.link-tools {
    display: none;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM