This method is not applicable to window and document objects; for these, use.height () instead. If called on an empty set of elements, returns undefined (null before jQuery 3.0). This method is not applicable to window and document objects; for these, use.width () instead. This translation is incomplete. If called on an empty set of elements, returns undefined (null before jQuery 3.0). Please help translate this article from English Resumen. Returns the height of the element, including top and bottom padding, border, and optionally margin, in pixels. La propiedad CSS padding establece el espacio de relleno requerido por todos los lados de un elemento.

Returns the width of the element, including left and right padding, border, and optionally margin, in pixels.