jquery里iframe自适应高度 (转)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>YUI Grids CSS</title> <%@ include file="/common/meta.jsp" %> <link href="${ctx}/css/yui.css" mce_href="${ctx}/css/yui.css" type="text/css" rel="stylesheet"/> <link href="${ctx}/css/style.css" mce_href="${ctx}/css/style.css" type="text/css" rel="stylesheet"/> <link href="${ctx}/css/left.css" mce_href="${ctx}/css/left.css" type="text/css" rel="stylesheet"/> <mce:script src="${ctx}/js/jquery.js" mce_src="${ctx}/js/jquery.js" type="text/javascript"></mce:script> <mce:script type="text/javascript"><!-- $(document).ready(function() { $("#content").load(function(){ var mainheight = $(this).contents().find("body").height()+30; $(this).height(mainheight); }); $('.urbangreymenu li a').click(function() { $('.urbangreymenu li a').removeClass('currentClickMenu'); $(this).addClass('currentClickMenu'); }); $('.headerbar').click(function() { $(this).next().toggle(); }); }); // --></mce:script> </head> <body> <div id="doc3" class="yui-t2"> <div id="hd" > <%@ include file="/common/header.jsp" %> </div> <div id="bd" > <div class="yui-b"> <%@ include file="/common/left.jsp" %> </div> <div id="yui-main"> <div class="yui-b"> <div class="yui-g"> <iframe frameborder="0" src="basic/bank-trunk!input.action" mce_src="basic/bank-trunk!input.action" width="100%" id="content" name="content" scrolling="no"></iframe> </div> </div> </div> </div> <%@ include file="/common/footer.jsp" %> </div> </body> </html>
相关推荐
EdwardSiCong 2020-11-23
85477104 2020-11-17
hhanbj 2020-11-17
81427005 2020-11-11
seoppt 2020-09-13
honeyth 2020-09-13
WRITEFORSHARE 2020-09-13
84483065 2020-09-11
momode 2020-09-11
85477104 2020-08-15
83510998 2020-08-08
82550495 2020-08-03
tthappyer 2020-08-03
84901334 2020-07-28
tthappyer 2020-07-25
TONIYH 2020-07-22
tztzyzyz 2020-07-20
83510998 2020-07-18
81463166 2020-07-17