jQuery垂直居中

if ($(".ClassName").height() = $(window).height()) $(".ClassName").css("marginTop",$(window).height()/2 - $(".ClassName").height()/2);

jQuery iframe高度自适应

$(document).ready(
  function()
  {
    $(window).resize(function(){$(".iframeName").height($(window).height());});
    $(".iframeName").load(function(){$(this).height($(window).height());});
  }
);