I have a problem. I want to make a full-page-size background but I always face the same problem:

As you can see my page is higher than 100% and when I scroll my background ends.Background is added on div id=wrapper here is a part of my code
HTML (JQ):
<body>
<div id='wrapper'>
    <!--content-->
</div>
<script>
$(document).ready(function() {
    $('#wrapper').fadeIn(1000);
})
</script>
CSS:
html,body {
  height:100%;
}
body {
  min-height: 100%;
}
#wrapper {
    background: url(../bg.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    height:100%;
    display:none;
    background-attachment: fixed;
}
I was searching for an answer and read questions in Stackoverflow (f.e. https://stackoverflow.com/a/6654996/3726786 ) but nothing really helped. Thanks for your help!
 
     
     
    