html - how to change the offsetHeight of a element using javascript? -
hello i'm trying change offsetheight of element. used following
document.getelementbyid('id').style.offsetheight = 0; but saw no visible change. can me please?
the offsetheight property indicates height of visible area element. it's shorthand contains sum of dimensions padding, scrollbars , borders.
however, can't used change actual size , noted in comments, offsetheight property of element, not style.
to modify actual size use height, padding or border.
Comments
Post a Comment