Sam*_*son 13
循环遍历每一列,找到最高的.然后将所有设置为该高度.
var maxHeight = 0;
$(".column").each(function(){
maxHeight = $(this).height() > maxHeight ? $(this).height() : maxHeight;
}).height(maxHeight);?
Run Code Online (Sandbox Code Playgroud)
在线演示:http://jsbin.com/afupe/2/edit
| 归档时间: |
|
| 查看次数: |
2889 次 |
| 最近记录: |