Estoy usando $(document).height() para asignar dinámicamente la altura a un fondo.
¿Por qué ocurre que cuando se hace clic en el documento, la imagen de fondo aumenta su altura? La altura del documento es la misma.
function setDocumentHeight(){ var height = $(document).height(); console.log("Document Height " + height); $(".bg").css({"height":height}); } setDocumentHeight(); $(document).click(function(e) { if (e.button == 0) { setDocumentHeight(); } });establece 0 superior e inferior en fondo absoluto. resolverá este problema.
.bg {top:0;bottom:0;}