0
我想從d3.select(this)獲得offsetParent值 - (這是容器)。d3 select offset parent
d3.select(這)返回:
[Array[1]]
0: g
offsetParent: div#divID
這是從在鉻的的console.log()中,每一行是內先前的。我如何得到這個offsetParent div ID?
最好,我想這樣做:
d3.select(this).select("g").select("offsetParent").attr("id")
非常感謝!正是我在找什麼。 – shell
不用客氣:) – Gilsha