iframe中元素的获取 iframe本身是一个独立的窗口,获取取中的元素,要先取得这个窗口的document.可以用document.getElementById("iframe_id").contentWindow.document来获得。