先这个样获取到对应的东西
window.onload = function(){ var a = document.getElementById('iframeid').contentWindow.document.getElementById('iframe里面的元素的id'); console.log(a)}
然后再操作就可以了。