Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两列,我想将右列的高度调整为与left. right柱子从底部切下。
left
right
这里有一些截图来显示我的问题:
JS小提琴
var s = document.getElementById("leftcolumn").offsetHeight; // you can change leftcolumn here with your left column id document.getElementById("rightcolumn").style.height = s+"px"; // you can change rightcolumn here with your right column id