【发布时间】:2014-08-05 18:43:41
【问题描述】:
如何在没有地址所有列类的情况下使用一个 DIV 类创建相等高度的行,而是在第一行中使用 4 行文本的行?
这是我的例子和问题http://jsfiddle.net/8mh4s/1/
$('.container').each(function() {
var highestBox1 = 0;
$('.column').each(function(){
if($(this).height() > highestBox1)
highestBox1 = $(this).height();
}).height(highestBox1);
});
我的基础是这个问题 - 但是这个基于行而不是列的 HTML: Setting equal heights for div's with jQuery
谢谢大家!
【问题讨论】:
-
你不能用桌子吗?
-
我的设计没有导致盒子阴影问题的原因
标签: jquery html css height equals