代碼:
$('#Zl').html('<iframe width="100%" id="rid" src="<?php echo $ff["url"];?>" frameborder="0"></iframe>');
$(document).ready(function(){
function fix_height(){ $("#rid").attr("height", (($(window).height())-5) + "px");}
$(window).resize(function(){ fix_height(); }).resize();