I recently modified some code I wrote before and found some problems.
For example, two divs need to maintain the same height dynamically.
The css approach is: Carefully developed UI front-end framework for 5 years!
.code
After testing, this problem can be solved using js.
The code is as follows: UI front-end framework carefully developed for 5 years!
. Code
var height = document.getElementById("left").offsetHeight > document.getElementById("right"). offsetHeight ?
document.getElementById("left").offsetHeight : document.getElementById("right").offsetHeight;
document. getElementById("left").style.height = document.getElementById("right").style.height = height "px";