控制iframe高度的万能方法

来源:互联网 发布:阿里云docker 编辑:程序博客网 时间:2024/06/08 06:15
function reloadFrameHeightShow(){var height = $("#mainContent7").contents().find("#wrap").height();$("#mainContent7").height(height);window.parent.reloadFrameHeight();}
千万不要写load
xxxxxxxx
function reloadFrameHeight(){$("#mainContent7").load(function(){var height = $(this).contents().find("body").height();$(this).height(height);window.parent.reloadFrameHeight();})}

xxxxxxxx

.hddc_xz a{} 控制class后面的a标签


<td class="hddc_xz" id="class" ><a href="training_course_announcement_main.jsp?class_info_id=<%=request.getParameter("class_info_id")%>" target="main" id="0"  onclick="changeStyle(this,'class');">班级信息</a></td>

0 0