Вот мой html -< /p>
Код: Выделить всё
Get Work. Done
< /code>
здесь CSS -< /p>
.contentContainer
{
background-image:url('laptop1.jpg');
height:400px;
width:100%;
background-size:cover;
}
< /code>
и jQuery -< /p>
$(".contentContainer").css("height",$(window).height());
Подробнее здесь: https://stackoverflow.com/questions/305 ... ser-height