<iframe id="iframe" src="./footer.jsp" frameborder="0" scrolling="no" height="145px" width="100%" noresize="noresize"></iframe>
1.要在网页加载完事之后再进行这段代码 。
window.onload = function(){
$("#iframe").contents().find("#copyrightTxt").css('hight','10px');
}
参考:jQuery取得iframe中元素的常用方法详解。https://www.jb51.net/article/78074.htm