//jquery代码一定要写在iframe下面
<iframe name="shopStep" id="shopStep" src="${ctxPath}/site/user/shopCart" style="overflow:visible;"
scrolling="no" frameborder="no" width="100%" onLoad="reinitIframeEND();"></iframe>
<script type="text/javascript">
$("#shopStep").load(function(){
var mainheight = $(this).contents().find("body").height()+30;
$(this).height(mainheight);
});
</script>