如何修改iframe内的页面的元素的样式

如何修改iframe内的页面的元素的样式

window.onload = function(){
    var _iframe = document.getElementById('iframe').contentWindow.document.getElementById('license_title')   //get iframe下的id
    _iframe.style.display= "none";  //修改样式
}

posted @ 2018-04-25 15:56  无碍。  阅读(25176)  评论(0编辑  收藏  举报