【发布时间】:2015-01-22 02:03:16
【问题描述】:
我使用 cytoscape 在每个节点中呈现带有图像的结构。出现节点内容,但不显示图像。 有没有办法将字符串路径与 data(id) 连接起来?
style:cytoscape.stylesheet()
.selector('node')
.css({
"content":"data(id)",
"background-image": 'url(http://puji.angin.com/cytoscape/data(id).jpg)',
"background-fit": "cover"
})
});
我的完整代码在这里: http://jsbin.com/bacoju/1/watch
【问题讨论】:
标签: string stylesheet concat cytoscape