bootstrap高度不统一造成的布局错乱
初次写博客,只是用来帮助记忆的,如有不正确的地方,还望大神指正:
reheight();
$(window).resize(function () {
reheight();
});
function reheight() {
var arr = [];
$('#pro_content .show_content .item > div a img').each(function(i){
arr[i] = $(this).outerHeight();
});
$('#pro_content .show_content .item > div a img').height(Math.max.apply(null,arr));
};
参考:
https://blog.csdn.net/bigbear00007/article/details/80116202