简体   繁体   中英

selecting the body of an iframe with D3

d3.select("body") lets me select the body of the current page. How would I select the body of an iframe'd page? In jquery you'd do $('body', frames[frameName].document) .

Thanks!

您可以选择以下元素的子元素:

d3.selectAll("iframe body");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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