1.window.frames["iframe的id"].contentDocument.getElementsByClassName("mycontainer")

2.document.getElementById('myiframe').contentWindow.document.getElementsByClassName("mycontainer")

3.$(window.frames["iframe的id"].contentDocument.documentElement).find(".mycontainer")

4.$("#myiframe").contents().find(".mycontainer")

相关文章: