How to call css file in js of html_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:55:20
Original
1027 people have browsed it

html part of the file:



.....


css file
#game {
height:333px;
width:33px;
...
}


Reply to the discussion (solved Solution)

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?

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template