Home >Web Front-end >HTML Tutorial >How to call css file in js of html_html/css_WEB-ITnose
html part of the file:
Cannot get the value in css
Get the height var game=document.getElementById("game");alert(game.offsetHeight);
Oh, that's what I mean . . . Thank you, you can get the value based on your offsetHeight.
Why is the obtained value a 333 number type instead of a 333px string?