Home  >  Article  >  Web Front-end  >  pixelHeight attribute in CSS_html/css_WEB-ITnose

pixelHeight attribute in CSS_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:22:101554browse

CSS JavaScript

What is the difference between this attribute and height? I saw this attribute in js when I was looking for the div folding code.


mrc.style.pixelHeight mrc is the id of a div.

Please tell me. There is no comment on the pixelHeight attribute online. Please tell me how to recursively call setTimeout for folding to achieve the accumulation or decrement of the pixelHeight attribute. Why doesn't height work?


Reply to discussion (solution)

One is string (with unit, cannot be used for calculation), the other is int/float

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn