jq实现两个列高度相同
$(document).ready(function() { tallest = 0; function equalHeight(group) { group.each(function() { thisHeight = $(this).height(); if(thisHeight > tallest) { tallest = thisHeight; } }); group.height(tallest); } // how to use $(document).ready(function() { equalHeight($(".left")); equalHeight($(".right")); }); });
本文作者: Jasmine
本文链接: https://www.jianbaizhan.com/article/636
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 许可协议。转载请注明出处!