[英]Bootstrap Auto Height Panels
試試這樣的——
使用 JavaScript
var panel1Height = document.getElementById('panel1').clientHeight;
var panel2Height = '20';
var panel3Height = panel1Height - panel2Height;
document.getElementById("panel3").style.height= panel3Height + 'px';
請注意,這只是一個模型,根據您的需要對其進行自定義。
這個框架在行height
完成工作......並且如果你放置動態內容總是自我調整
框架: https : //github.com/mattbanks/jQuery.equalHeights代碼: https : //codepen.io/micahgodbolt/pen/FgqLc
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.