hanuman6
12/5/2013 - 6:49 AM

//高さを取得して画面いっぱいに画像サイズをあわせる

//高さを取得して画面いっぱいに画像サイズをあわせる

#top-photo {
	background: url(../img/photo001.png) no-repeat center center;
}
  $('#top-photo').css('background-size', 'cover');

    var wH = $(window).height();
    //alert (wH);
    $(function(){
        $('#top-photo').css('height',wH+'px');
    });