【发布时间】:2014-03-30 04:15:25
【问题描述】:
我正在调整面板的大小,使其与左侧列的高度相同。
我可以很好地调整大小,但面板页脚卡在顶部。解决这个问题的最佳方法是什么?
这是我正在使用的 js:
$(document).ready(function(){
//Panels have a margin-bottom
$topRightCol = $('.homepage-top-right-col .panel');
$leftColHeight = $('.homepage-top-left-col').height() -
parseInt($topRightCol.css('margin-bottom')) -
parseInt($topRightCol.css('borderBottomWidth'));
$topRightCol.height($leftColHeight);
当我尝试像这样 ('.homepage-top-right-col).height($leftColHeight) 设置列类本身的高度时,它并没有增加高度,所以我修改了面板。
【问题讨论】:
标签: javascript css twitter-bootstrap-3