What I need to do to get the same height for different divs?

前端 未结 0 1723
刺人心
刺人心 2021-01-26 19:04

How do I do something like that in javascript:

var y = document.getElementById("div1").style.height; document.getElementById("div2").style.height= y;<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题