get height of a div and set the height of another div using it

后端 未结 5 1045
孤街浪徒
孤街浪徒 2021-01-14 08:20

I have two divs, neither have a height set in css, as I want to take whatever height they end up as and set the other div to be that height.

The javascript I have is

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-14 08:42

    There are jQuery plugins to do this in a general way. Here's one.

提交回复
热议问题