你能看一下This Demo,让我知道为什么工具提示没有显示在鼠标悬停的路径上?
<div id="canvasDiv"></div>
$(function () {
var paper = Raphael(0, 0, 500, 500);
var d = "M90,90l-80,-20L50,5L90,90";
var tri = paper.path(d).attr({
"fill": "yellow",
"stroke-width": 5,
"stroke-linejoin": "round",
"title": "Show Me The Tooltip!"
});
$(tri).tooltip();
});