Home  >  Article  >  Web Front-end  >  JS implementation code for two DIVs of equal height_javascript skills

JS implementation code for two DIVs of equal height_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:07:11876browse

I used the following JS to control the equal height of two DIVs and place them at the bottom of the web page.

Copy code The code is as follows:



It works fine under IE, but under Firefox, it needs to be refreshed every time before it can be stretched automatically. Does anyone have a good way to solve it?
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